scratch-storage 2.0.2 → 2.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/.circleci/config.yml +70 -0
- package/.nyc_output/c826ae6b-4ae2-4d8e-bdb2-162df5761fa7.json +1 -0
- package/.nyc_output/ec2d52a1-5131-4dd0-9c23-59106f297082.json +1 -0
- package/.nyc_output/processinfo/c826ae6b-4ae2-4d8e-bdb2-162df5761fa7.json +1 -0
- package/.nyc_output/processinfo/ec2d52a1-5131-4dd0-9c23-59106f297082.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/README.md +2 -1
- package/dist/node/8c63ecb0448dfbb8e804.worker.js +4187 -0
- package/dist/node/8c63ecb0448dfbb8e804.worker.js.map +1 -0
- package/dist/node/scratch-storage.js +2933 -142
- package/dist/node/scratch-storage.js.map +1 -1
- package/dist/web/90c5db0dff5ca2a36ff6.worker.js +743 -0
- package/dist/web/90c5db0dff5ca2a36ff6.worker.js.map +1 -0
- package/dist/web/scratch-storage.js +1149 -85
- package/dist/web/scratch-storage.js.map +1 -1
- package/dist/web/scratch-storage.min.js +1149 -85
- package/dist/web/scratch-storage.min.js.map +1 -1
- package/package.json +9 -4
- package/src/FetchTool.js +17 -13
- package/src/FetchWorkerTool.js +14 -7
- package/src/FetchWorkerTool.worker.js +6 -10
- package/src/scratchFetch.js +86 -0
- package/test/integration/download-known-assets.js +27 -30
- package/test/mocks/mockFetch.js +64 -0
- package/test/unit/fetch-tool.js +27 -44
- package/test/unit/metadata.js +136 -0
- package/webpack.config.js +9 -8
- package/.travis.yml +0 -24
- package/dist/node/f98711f696b187f5e007.worker.js +0 -1906
- package/dist/node/f98711f696b187f5e007.worker.js.map +0 -1
- package/dist/web/01b4fbd4d14a4f22cab8.worker.js +0 -190
- package/dist/web/01b4fbd4d14a4f22cab8.worker.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
|
|
2
|
+
version: 2.1
|
|
3
|
+
orbs:
|
|
4
|
+
commitlint: conventional-changelog/commitlint@1.0.0
|
|
5
|
+
node: circleci/node@5.1
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build-and-test:
|
|
9
|
+
executor:
|
|
10
|
+
name: node/default
|
|
11
|
+
resource_class: medium
|
|
12
|
+
tag: '16.19'
|
|
13
|
+
steps:
|
|
14
|
+
- checkout
|
|
15
|
+
- node/install-packages
|
|
16
|
+
- run: npm run build
|
|
17
|
+
- run: npm run test
|
|
18
|
+
- persist_to_workspace:
|
|
19
|
+
root: ~/project
|
|
20
|
+
paths:
|
|
21
|
+
- .
|
|
22
|
+
deploy:
|
|
23
|
+
executor:
|
|
24
|
+
name: node/default
|
|
25
|
+
resource_class: medium
|
|
26
|
+
tag: '16.19'
|
|
27
|
+
steps:
|
|
28
|
+
- attach_workspace:
|
|
29
|
+
at: ~/project
|
|
30
|
+
- run: npm run semantic-release
|
|
31
|
+
|
|
32
|
+
workflows:
|
|
33
|
+
commitlint:
|
|
34
|
+
when:
|
|
35
|
+
not:
|
|
36
|
+
or:
|
|
37
|
+
- equal: [ master, <<pipeline.git.branch>> ]
|
|
38
|
+
- equal: [ develop, <<pipeline.git.branch>> ]
|
|
39
|
+
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
|
40
|
+
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
|
41
|
+
jobs:
|
|
42
|
+
- commitlint/lint:
|
|
43
|
+
target-branch: develop
|
|
44
|
+
|
|
45
|
+
build-and-test-workflow:
|
|
46
|
+
when:
|
|
47
|
+
not:
|
|
48
|
+
or:
|
|
49
|
+
- equal: [ master, <<pipeline.git.branch>> ]
|
|
50
|
+
- equal: [ develop, <<pipeline.git.branch>> ]
|
|
51
|
+
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
|
52
|
+
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
|
53
|
+
jobs:
|
|
54
|
+
- build-and-test
|
|
55
|
+
|
|
56
|
+
deploy-workflow:
|
|
57
|
+
when:
|
|
58
|
+
or:
|
|
59
|
+
- equal: [ master, <<pipeline.git.branch>> ]
|
|
60
|
+
- equal: [ develop, <<pipeline.git.branch>> ]
|
|
61
|
+
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
|
62
|
+
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
|
63
|
+
|
|
64
|
+
jobs:
|
|
65
|
+
- build-and-test
|
|
66
|
+
- deploy:
|
|
67
|
+
context:
|
|
68
|
+
- scratch-npm-creds
|
|
69
|
+
requires:
|
|
70
|
+
- build-and-test
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":263,"argv":["/usr/local/bin/node","/home/circleci/project/node_modules/.bin/tap","./test/integration/download-known-assets.js"],"execArgv":[],"cwd":"/home/circleci/project","time":1679325567414,"ppid":252,"coverageFilename":"/home/circleci/project/.nyc_output/c826ae6b-4ae2-4d8e-bdb2-162df5761fa7.json","externalId":"","uuid":"c826ae6b-4ae2-4d8e-bdb2-162df5761fa7","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":"c826ae6b-4ae2-4d8e-bdb2-162df5761fa7","pid":274,"argv":["/usr/local/bin/node","/home/circleci/project/test/integration/download-known-assets.js"],"execArgv":[],"cwd":"/home/circleci/project","time":1679325568227,"ppid":263,"coverageFilename":"/home/circleci/project/.nyc_output/ec2d52a1-5131-4dd0-9c23-59106f297082.json","externalId":"./test/integration/download-known-assets.js","uuid":"ec2d52a1-5131-4dd0-9c23-59106f297082","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"processes":{"c826ae6b-4ae2-4d8e-bdb2-162df5761fa7":{"parent":null,"children":["ec2d52a1-5131-4dd0-9c23-59106f297082"]},"ec2d52a1-5131-4dd0-9c23-59106f297082":{"parent":"c826ae6b-4ae2-4d8e-bdb2-162df5761fa7","externalId":"./test/integration/download-known-assets.js","children":[]}},"files":{},"externalIds":{"./test/integration/download-known-assets.js":{"root":"ec2d52a1-5131-4dd0-9c23-59106f297082","children":[]}}}
|
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
## scratch-storage
|
|
2
2
|
#### Scratch Storage is a library for loading and storing project and asset files for Scratch 3.0
|
|
3
3
|
|
|
4
|
-
[](https://circleci.com/gh/LLK/scratch-storage?branch=develop)
|
|
5
|
+
|
|
5
6
|
[](https://coveralls.io/github/LLK/scratch-storage?branch=develop)
|
|
6
7
|
[](https://greenkeeper.io/)
|
|
7
8
|
|