Skip to content

Commit 6a608e7

Browse files
committed
Merge remote-tracking branch 'upstream/alpha' into feat/typescript
2 parents c098c1b + 0a23023 commit 6a608e7

File tree

3 files changed

+95
-78
lines changed

3 files changed

+95
-78
lines changed

package-lock.json

Lines changed: 71 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dependencies": {
2323
"@apollo/server": "4.11.3",
2424
"@babel/eslint-parser": "7.25.9",
25-
"@graphql-tools/merge": "9.0.14",
25+
"@graphql-tools/merge": "9.0.17",
2626
"@graphql-tools/schema": "10.0.16",
2727
"@graphql-tools/utils": "10.6.3",
2828
"@parse/fs-files-adapter": "3.0.0",
@@ -68,11 +68,11 @@
6868
},
6969
"devDependencies": {
7070
"@actions/core": "1.11.1",
71-
"@apollo/client": "3.12.3",
71+
"@apollo/client": "3.12.6",
7272
"@babel/cli": "7.26.4",
7373
"@babel/core": "7.26.0",
7474
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
75-
"@babel/plugin-transform-flow-strip-types": "7.25.9",
75+
"@babel/plugin-transform-flow-strip-types": "7.26.5",
7676
"@babel/preset-env": "7.26.0",
7777
"@babel/preset-typescript": "7.26.0",
7878
"@saithodev/semantic-release-backmerge": "4.0.1",
@@ -109,7 +109,7 @@
109109
"prettier": "2.0.5",
110110
"semantic-release": "24.2.1",
111111
"typescript": "5.7.3",
112-
"yaml": "2.6.1"
112+
"yaml": "2.7.0"
113113
},
114114
"scripts": {
115115
"ci:check": "node ./ci/ciCheck.js",

spec/ParseFile.spec.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,26 @@ describe('Parse.File testing', () => {
378378
expect(response.headers['content-type']).toMatch(/^text\/html/);
379379
});
380380

381+
it('works without Content-Type and extension', async () => {
382+
await reconfigureServer({
383+
fileUpload: {
384+
enableForPublic: true,
385+
},
386+
});
387+
const headers = {
388+
'X-Parse-Application-Id': 'test',
389+
'X-Parse-REST-API-Key': 'rest',
390+
};
391+
const result = await request({
392+
method: 'POST',
393+
headers: headers,
394+
url: 'http://localhost:8378/1/files/file',
395+
body: '<html></html>\n',
396+
});
397+
expect(result.data.url.includes('file.txt')).toBeTrue();
398+
expect(result.data.name.includes('file.txt')).toBeTrue();
399+
});
400+
381401
it('filename is url encoded', done => {
382402
const headers = {
383403
'Content-Type': 'text/html',

0 commit comments

Comments
 (0)