lottie-helper 1.0.0 → 1.0.1
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/bin/lottie.help.js +0 -0
- package/package.json +4 -3
- package/pnpm-lock.yaml +1 -1
- package/src/index.js +1 -1
package/bin/lottie.help.js
CHANGED
File without changes
|
package/package.json
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "lottie-helper",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.1",
|
4
4
|
"description": "lottie-helper",
|
5
5
|
"main": "./src/index.js",
|
6
6
|
"bin": {
|
7
|
-
"lohelp": "
|
7
|
+
"lohelp": "bin/lottie.help.js"
|
8
8
|
},
|
9
9
|
"scripts": {
|
10
10
|
"start": "node run build",
|
11
11
|
"action": "node dist/bundle.min.js",
|
12
12
|
"build": "pnpm i && npm run build-controller && npm run build-main",
|
13
13
|
"build-main": "npx rollup -c ./rollup.config.js",
|
14
|
-
"build-controller": "npx rollup -c ./rollup.config.controller.js"
|
14
|
+
"build-controller": "npx rollup -c ./rollup.config.controller.js",
|
15
|
+
"test": "echo \"Error: no test specified\""
|
15
16
|
},
|
16
17
|
"author": "jf",
|
17
18
|
"license": "MIT",
|
package/pnpm-lock.yaml
CHANGED
package/src/index.js
CHANGED
@@ -20,7 +20,7 @@ const hasUserJsonURL = userJsonURL === 'undefined' ? false : userJsonURL;
|
|
20
20
|
// TODO 这里增加引入JSON的方式: 1.本地JSON 2.远程URL加载
|
21
21
|
// 2.URL加载JSON
|
22
22
|
let jsonResult = "it fuckin empty jsonResult.";
|
23
|
-
const jsonURL = hasUserJsonURL || "
|
23
|
+
const jsonURL = hasUserJsonURL || "https://callbackhell.xyz/lottie-json/lottie-2.json";
|
24
24
|
try {
|
25
25
|
const { status, data } = await axios(jsonURL);
|
26
26
|
if (status === 200) {
|