소스 검색

feat: 新增 baseURL 默认配置项

mrabit 2 년 전
부모
커밋
7eca2a6519
2개의 변경된 파일27개의 추가작업 그리고 27개의 파일을 삭제
  1. 3 3
      config.example.js
  2. 24 24
      package-lock.json

+ 3 - 3
config.example.js

@@ -1,5 +1,5 @@
 module.exports = {
-  baseURL: '',
-  cookie: '',
-  deviceId: ''
+  baseURL: 'https://h5.moutai519.com.cn/game/xmTravel/',
+  cookie: '', // 小茅运 H5 页面请求 cookie
+  deviceId: '' // User-Agent 里的 deviceId 值
 }

+ 24 - 24
package-lock.json

@@ -6,12 +6,12 @@
   "dependencies": {
     "asynckit": {
       "version": "0.4.0",
-      "resolved": "https://ddns.mrabit.com:10054/asynckit/-/asynckit-0.4.0.tgz",
+      "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
       "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
     },
     "axios": {
       "version": "0.27.2",
-      "resolved": "https://ddns.mrabit.com:10054/axios/-/axios-0.27.2.tgz",
+      "resolved": "https://registry.npmmirror.com/axios/-/axios-0.27.2.tgz",
       "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",
       "requires": {
         "follow-redirects": "^1.14.9",
@@ -20,7 +20,7 @@
     },
     "call-bind": {
       "version": "1.0.2",
-      "resolved": "https://ddns.mrabit.com:10054/call-bind/-/call-bind-1.0.2.tgz",
+      "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.2.tgz",
       "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
       "requires": {
         "function-bind": "^1.1.1",
@@ -29,12 +29,12 @@
     },
     "colors": {
       "version": "1.4.0",
-      "resolved": "https://ddns.mrabit.com:10054/colors/-/colors-1.4.0.tgz",
+      "resolved": "https://registry.npmmirror.com/colors/-/colors-1.4.0.tgz",
       "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA=="
     },
     "combined-stream": {
       "version": "1.0.8",
-      "resolved": "https://ddns.mrabit.com:10054/combined-stream/-/combined-stream-1.0.8.tgz",
+      "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
       "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
       "requires": {
         "delayed-stream": "~1.0.0"
@@ -42,7 +42,7 @@
     },
     "cron-parser": {
       "version": "3.5.0",
-      "resolved": "https://ddns.mrabit.com:10054/cron-parser/-/cron-parser-3.5.0.tgz",
+      "resolved": "https://registry.npmmirror.com/cron-parser/-/cron-parser-3.5.0.tgz",
       "integrity": "sha512-wyVZtbRs6qDfFd8ap457w3XVntdvqcwBGxBoTvJQH9KGVKL/fB+h2k3C8AqiVxvUQKN1Ps/Ns46CNViOpVDhfQ==",
       "requires": {
         "is-nan": "^1.3.2",
@@ -51,12 +51,12 @@
     },
     "dayjs": {
       "version": "1.11.2",
-      "resolved": "https://ddns.mrabit.com:10054/dayjs/-/dayjs-1.11.2.tgz",
+      "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.2.tgz",
       "integrity": "sha512-F4LXf1OeU9hrSYRPTTj/6FbO4HTjPKXvEIC1P2kcnFurViINCVk3ZV0xAS3XVx9MkMsXbbqlK6hjseaYbgKEHw=="
     },
     "define-properties": {
       "version": "1.1.4",
-      "resolved": "https://ddns.mrabit.com:10054/define-properties/-/define-properties-1.1.4.tgz",
+      "resolved": "https://registry.npmmirror.com/define-properties/-/define-properties-1.1.4.tgz",
       "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==",
       "requires": {
         "has-property-descriptors": "^1.0.0",
@@ -65,17 +65,17 @@
     },
     "delayed-stream": {
       "version": "1.0.0",
-      "resolved": "https://ddns.mrabit.com:10054/delayed-stream/-/delayed-stream-1.0.0.tgz",
+      "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
       "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
     },
     "follow-redirects": {
       "version": "1.15.1",
-      "resolved": "https://ddns.mrabit.com:10054/follow-redirects/-/follow-redirects-1.15.1.tgz",
+      "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.1.tgz",
       "integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA=="
     },
     "form-data": {
       "version": "4.0.0",
-      "resolved": "https://ddns.mrabit.com:10054/form-data/-/form-data-4.0.0.tgz",
+      "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz",
       "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
       "requires": {
         "asynckit": "^0.4.0",
@@ -85,12 +85,12 @@
     },
     "function-bind": {
       "version": "1.1.1",
-      "resolved": "https://ddns.mrabit.com:10054/function-bind/-/function-bind-1.1.1.tgz",
+      "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz",
       "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
     },
     "get-intrinsic": {
       "version": "1.1.1",
-      "resolved": "https://ddns.mrabit.com:10054/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
+      "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
       "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
       "requires": {
         "function-bind": "^1.1.1",
@@ -100,7 +100,7 @@
     },
     "has": {
       "version": "1.0.3",
-      "resolved": "https://ddns.mrabit.com:10054/has/-/has-1.0.3.tgz",
+      "resolved": "https://registry.npmmirror.com/has/-/has-1.0.3.tgz",
       "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
       "requires": {
         "function-bind": "^1.1.1"
@@ -108,7 +108,7 @@
     },
     "has-property-descriptors": {
       "version": "1.0.0",
-      "resolved": "https://ddns.mrabit.com:10054/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz",
+      "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz",
       "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==",
       "requires": {
         "get-intrinsic": "^1.1.1"
@@ -116,12 +116,12 @@
     },
     "has-symbols": {
       "version": "1.0.3",
-      "resolved": "https://ddns.mrabit.com:10054/has-symbols/-/has-symbols-1.0.3.tgz",
+      "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz",
       "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="
     },
     "is-nan": {
       "version": "1.3.2",
-      "resolved": "https://ddns.mrabit.com:10054/is-nan/-/is-nan-1.3.2.tgz",
+      "resolved": "https://registry.npmmirror.com/is-nan/-/is-nan-1.3.2.tgz",
       "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==",
       "requires": {
         "call-bind": "^1.0.0",
@@ -130,22 +130,22 @@
     },
     "long-timeout": {
       "version": "0.1.1",
-      "resolved": "https://ddns.mrabit.com:10054/long-timeout/-/long-timeout-0.1.1.tgz",
+      "resolved": "https://registry.npmmirror.com/long-timeout/-/long-timeout-0.1.1.tgz",
       "integrity": "sha512-BFRuQUqc7x2NWxfJBCyUrN8iYUYznzL9JROmRz1gZ6KlOIgmoD+njPVbb+VNn2nGMKggMsK79iUNErillsrx7w=="
     },
     "luxon": {
       "version": "1.28.0",
-      "resolved": "https://ddns.mrabit.com:10054/luxon/-/luxon-1.28.0.tgz",
+      "resolved": "https://registry.npmmirror.com/luxon/-/luxon-1.28.0.tgz",
       "integrity": "sha512-TfTiyvZhwBYM/7QdAVDh+7dBTBA29v4ik0Ce9zda3Mnf8on1S5KJI8P2jKFZ8+5C0jhmr0KwJEO/Wdpm0VeWJQ=="
     },
     "mime-db": {
       "version": "1.52.0",
-      "resolved": "https://ddns.mrabit.com:10054/mime-db/-/mime-db-1.52.0.tgz",
+      "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
       "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
     },
     "mime-types": {
       "version": "2.1.35",
-      "resolved": "https://ddns.mrabit.com:10054/mime-types/-/mime-types-2.1.35.tgz",
+      "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
       "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
       "requires": {
         "mime-db": "1.52.0"
@@ -153,7 +153,7 @@
     },
     "node-schedule": {
       "version": "2.1.0",
-      "resolved": "https://ddns.mrabit.com:10054/node-schedule/-/node-schedule-2.1.0.tgz",
+      "resolved": "https://registry.npmmirror.com/node-schedule/-/node-schedule-2.1.0.tgz",
       "integrity": "sha512-nl4JTiZ7ZQDc97MmpTq9BQjYhq7gOtoh7SiPH069gBFBj0PzD8HI7zyFs6rzqL8Y5tTiEEYLxgtbx034YPrbyQ==",
       "requires": {
         "cron-parser": "^3.5.0",
@@ -163,12 +163,12 @@
     },
     "object-keys": {
       "version": "1.1.1",
-      "resolved": "https://ddns.mrabit.com:10054/object-keys/-/object-keys-1.1.1.tgz",
+      "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz",
       "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="
     },
     "sorted-array-functions": {
       "version": "1.3.0",
-      "resolved": "https://ddns.mrabit.com:10054/sorted-array-functions/-/sorted-array-functions-1.3.0.tgz",
+      "resolved": "https://registry.npmmirror.com/sorted-array-functions/-/sorted-array-functions-1.3.0.tgz",
       "integrity": "sha512-2sqgzeFlid6N4Z2fUQ1cvFmTOLRi/sEDzSQ0OKYchqgoPmQBVyM3959qYx3fpS6Esef80KjmpgPeEr028dP3OA=="
     }
   }