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.
File without changes
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "lottie-helper",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "lottie-helper",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
7
- "lohelp": "./bin/lottie.help.js"
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
@@ -1,4 +1,4 @@
1
- lockfileVersion: 5.3
1
+ lockfileVersion: 5.4
2
2
 
3
3
  specifiers:
4
4
  '@babel/core': ^7.0.0
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 || "http://localhost/public/lottie.json";
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) {