@unchainedshop/file-upload 1.1.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jest.config.js +5 -0
- package/package.json +17 -13
- package/tests/file-upload-index.test.ts +1 -1
- package/tsconfig.json +26 -5
- package/.versions +0 -53
- package/tsconfig.build.json +0 -26
package/jest.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/file-upload",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"main": "lib/file-upload-index.js",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./lib/file-upload-index.js",
|
|
7
|
+
"./*": "./lib/*"
|
|
8
|
+
},
|
|
5
9
|
"types": "lib/file-upload-index.d.ts",
|
|
6
10
|
"type": "module",
|
|
7
11
|
"scripts": {
|
|
12
|
+
"prepublishOnly": "npm install && npm run build || :",
|
|
8
13
|
"clean": "rm -rf lib",
|
|
9
|
-
"build": "npm run clean && tsc
|
|
10
|
-
"watch": "tsc
|
|
11
|
-
"
|
|
12
|
-
"test": "cross-env METEOR_PACKAGE_DIRS=../ TEST_CLIENT=0 TEST_WATCH=1 meteor test-packages ./ --driver-package meteortesting:mocha --port 4200"
|
|
14
|
+
"build": "npm run clean && tsc",
|
|
15
|
+
"watch": "tsc -w",
|
|
16
|
+
"test": "jest --watch"
|
|
13
17
|
},
|
|
14
18
|
"repository": {
|
|
15
19
|
"type": "git",
|
|
@@ -27,19 +31,19 @@
|
|
|
27
31
|
},
|
|
28
32
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
29
33
|
"dependencies": {
|
|
30
|
-
"@unchainedshop/logger": "1.1.
|
|
31
|
-
"@unchainedshop/utils": "1.1.
|
|
32
|
-
"mime-types": "^2.1.35",
|
|
34
|
+
"@unchainedshop/logger": "^1.1.9",
|
|
35
|
+
"@unchainedshop/utils": "^1.1.9",
|
|
33
36
|
"base-x": "4.0.0",
|
|
37
|
+
"mime-types": "^2.1.35",
|
|
34
38
|
"minio": "^7.0.28"
|
|
35
39
|
},
|
|
36
40
|
"devDependencies": {
|
|
37
|
-
"@types/chai": "^4.3.1",
|
|
38
41
|
"@types/minio": "^7.0.13",
|
|
39
|
-
"@types/
|
|
40
|
-
"@unchainedshop/types": "1.1.
|
|
41
|
-
"
|
|
42
|
-
"
|
|
42
|
+
"@types/node": "^16.11.44",
|
|
43
|
+
"@unchainedshop/types": "^1.1.9",
|
|
44
|
+
"apollo-server-express": "2.x",
|
|
45
|
+
"jest": "^28.1.2",
|
|
46
|
+
"ts-jest": "^28.0.5",
|
|
43
47
|
"typescript": "^4.7.4"
|
|
44
48
|
}
|
|
45
49
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./tsconfig.build.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"lib": [
|
|
10
|
+
"esnext"
|
|
11
|
+
],
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"noImplicitReturns": true,
|
|
15
|
+
"noUnusedLocals": false,
|
|
16
|
+
"outDir": "lib",
|
|
17
|
+
"preserveWatchOutput": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"sourceMap": true,
|
|
20
|
+
"target": "esnext",
|
|
21
|
+
"types": [
|
|
22
|
+
"node",
|
|
23
|
+
"jest"
|
|
24
|
+
]
|
|
6
25
|
},
|
|
7
|
-
"include": [
|
|
8
|
-
|
|
26
|
+
"include": [
|
|
27
|
+
"src"
|
|
28
|
+
]
|
|
29
|
+
}
|
package/.versions
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
allow-deny@1.1.1
|
|
2
|
-
babel-compiler@7.9.0
|
|
3
|
-
babel-runtime@1.5.1
|
|
4
|
-
base64@1.0.12
|
|
5
|
-
binary-heap@1.0.11
|
|
6
|
-
boilerplate-generator@1.7.1
|
|
7
|
-
callback-hook@1.4.0
|
|
8
|
-
check@1.3.1
|
|
9
|
-
ddp@1.4.0
|
|
10
|
-
ddp-client@2.5.0
|
|
11
|
-
ddp-common@1.4.0
|
|
12
|
-
ddp-server@2.5.0
|
|
13
|
-
diff-sequence@1.1.1
|
|
14
|
-
dynamic-import@0.7.2
|
|
15
|
-
ecmascript@0.16.2
|
|
16
|
-
ecmascript-runtime@0.8.0
|
|
17
|
-
ecmascript-runtime-client@0.12.1
|
|
18
|
-
ecmascript-runtime-server@0.11.0
|
|
19
|
-
ejson@1.1.2
|
|
20
|
-
fetch@0.1.1
|
|
21
|
-
geojson-utils@1.0.10
|
|
22
|
-
id-map@1.1.1
|
|
23
|
-
inter-process-messaging@0.1.1
|
|
24
|
-
local-test:unchained:file-upload@1.1.1
|
|
25
|
-
logging@1.3.1
|
|
26
|
-
meteor@1.10.0
|
|
27
|
-
meteortesting:browser-tests@0.1.2
|
|
28
|
-
meteortesting:mocha@0.4.4
|
|
29
|
-
minimongo@1.8.0
|
|
30
|
-
modern-browsers@0.1.8
|
|
31
|
-
modules@0.18.0
|
|
32
|
-
modules-runtime@0.13.0
|
|
33
|
-
mongo@1.15.0
|
|
34
|
-
mongo-decimal@0.1.3
|
|
35
|
-
mongo-dev-server@1.1.0
|
|
36
|
-
mongo-id@1.0.8
|
|
37
|
-
npm-mongo@4.3.1
|
|
38
|
-
ordered-dict@1.1.0
|
|
39
|
-
practicalmeteor:mocha-core@1.0.1
|
|
40
|
-
promise@0.12.0
|
|
41
|
-
random@1.2.0
|
|
42
|
-
react-fast-refresh@0.2.3
|
|
43
|
-
reload@1.3.1
|
|
44
|
-
retry@1.1.0
|
|
45
|
-
routepolicy@1.1.1
|
|
46
|
-
socket-stream-client@0.5.0
|
|
47
|
-
tracker@1.2.0
|
|
48
|
-
typescript@4.5.4
|
|
49
|
-
unchained:file-upload@1.1.1
|
|
50
|
-
unchained:mongodb@1.1.0
|
|
51
|
-
underscore@1.0.10
|
|
52
|
-
webapp@1.13.1
|
|
53
|
-
webapp-hashing@1.1.0
|
package/tsconfig.build.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowJs": true,
|
|
4
|
-
"allowSyntheticDefaultImports": true,
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"lib": ["esnext"],
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"noImplicitReturns": true,
|
|
13
|
-
"noUnusedLocals": false,
|
|
14
|
-
"outDir": "lib",
|
|
15
|
-
"preserveWatchOutput": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"target": "esnext",
|
|
19
|
-
"types": ["node"],
|
|
20
|
-
"baseUrl": ".", // This must be specified if "paths" is.
|
|
21
|
-
"paths": {
|
|
22
|
-
"meteor/unchained:*": ["node_modules/@unchainedshop/types/index.d.ts"]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": ["src"]
|
|
26
|
-
}
|