Skip to content

Commit 4bbbd7f

Browse files
semantic-release-botSebC99
authored andcommitted
change to RestWrite.createSession (+14 squashed commits)
Squashed commits: [1306da7] Merge pull request from GHSA-23r4-5mxp-c7g5 [3a5c38d] revert to version 4.5.0 for testing [a3483d8] fix changelog skip 4.5.1 [3c42584] 4.5.2 [97b1dca] revert to version 4.5.0 for testing [f3133ac] Release 4.10.1 (parse-community#7508) * bump parse 3.3.0 * Update CHANGELOG.md * update user test (PR parse-community#7464) * fix Twitter API oauth Error (PR parse-community#7370) * bumped dependencies * Revert "bumped dependencies" This reverts commit 97ad83d. * bump @parse/push-adapter 3.4.1 * bump [email protected] * bump [email protected] * bump [email protected] * changed logging for circular obj (PR parse-community#7457) * Update CHANGELOG.md [7e1da90] added changelog [0e3cae5] audit fix [f0d5232] bumped version [4ac4b7f] Merge pull request from GHSA-7pr3-p5fm-8r9x * fix: LQ deletes session token * add 4.10.4 * add changes [ef2ec21] ci: update docker image building (parse-community#7553) * docker * Update docker-publish.yml * Update docker-publish.yml [6ae5835] Merge pull request from GHSA-xqp8-w826-hh6x * Backport the advisory fix * Added a 4.10.3 section to CHANGELOG [0bfa6b7] Release 4.10.2 (parse-community#7513) * move graphql-tag from devDependencies to dependencies (parse-community#7183) * bump version * Update CHANGELOG.md [0be0b87] bump version
1 parent 12e174b commit 4bbbd7f

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

.github/workflows/docker-publish.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: docker
2+
3+
on:
4+
schedule:
5+
- cron: '19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
6+
push:
7+
branches: [ master, 'release-*.*.*' ]
8+
tags: [ '*.*.*' ]
9+
10+
env:
11+
REGISTRY: docker.io
12+
IMAGE_NAME: parseplatform/parse-server
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-18.04
18+
permissions:
19+
contents: read
20+
packages: write
21+
22+
steps:
23+
- name: Determine branch name
24+
id: branch
25+
run: echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}
26+
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
30+
- name: Set up QEMU
31+
id: qemu
32+
uses: docker/setup-qemu-action@v1
33+
34+
- name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v1
36+
37+
- name: Log into Docker Hub
38+
if: github.event_name != 'pull_request'
39+
uses: docker/login-action@v1
40+
with:
41+
username: ${{ secrets.DOCKERHUB_USERNAME }}
42+
password: ${{ secrets.DOCKERHUB_TOKEN }}
43+
44+
- name: Extract Docker metadata
45+
id: meta
46+
uses: docker/metadata-action@v3
47+
with:
48+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
49+
flavor: |
50+
latest=${{ steps.branch.branch_name == 'master' }}
51+
52+
- name: Build and push Docker image
53+
uses: docker/build-push-action@v2
54+
with:
55+
context: .
56+
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
57+
push: ${{ github.event_name != 'pull_request' }}
58+
tags: ${{ steps.meta.outputs.tags }}
59+
labels: ${{ steps.meta.outputs.labels }}

src/RestWrite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ RestWrite.prototype.createSessionToken = async function () {
878878
this.storage['authProvider'] = Object.keys(this.data.authData).join(',');
879879
}
880880

881-
const { sessionData, createSession } = RestWrite.createSession(this.config, {
881+
const { sessionData, createSession } = Auth.createSession(this.config, {
882882
userId: this.objectId(),
883883
createdWith: {
884884
action: this.storage['authProvider'] ? 'login' : 'signup',

0 commit comments

Comments
 (0)