diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 02109fb..914eb08 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -38,7 +38,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm run build2 + - run: npm run build - uses: actions/upload-artifact@v2 with: name: my-dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2bd836..fe442ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm run build2 + - run: npm run build - name: Create Release id: create_release uses: actions/create-release@v1 diff --git a/manifest.json b/manifest.json index 2b5ff9e..3bab38f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "invio", "name": "Invio", - "version": "0.1.3", + "version": "0.1.4", "minAppVersion": "0.13.21", "description": "Invio is a plugin for Obsidian which lets you export docs as HTML websites / webpages. It is similar to publish, but you get the .html files to your own COS and then you can do whatever you want with. Its goal is to support as many features of obsidian possible including themes, dataview, graph view, and more.", "author": "frontend-engineering", diff --git a/package.json b/package.json index 797695a..94182e9 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,8 @@ "version": "0.1.3", "description": "Publish your obsidian docs to COS.", "scripts": { - "dev2": "node esbuild.config.mjs", - "build2": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", - "build": "webpack --mode production", - "dev": "webpack --mode development --watch", + "dev": "node esbuild.config.mjs", + "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", "format": "npx prettier --write .", "clean": "npx rimraf main.js", "test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha -r ts-node/register 'tests/**/*.ts'" @@ -51,9 +49,7 @@ "ts-node": "^10.7.0", "tslib": "2.4.0", "typescript": "4.7.4", - "webdav-server": "^2.6.2", - "webpack": "^5.72.0", - "webpack-cli": "^4.9.2" + "webdav-server": "^2.6.2" }, "dependencies": { "@aws-sdk/client-s3": "^3.81.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0be6d52..c00fff2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -235,17 +235,11 @@ devDependencies: webdav-server: specifier: ^2.6.2 version: registry.npmmirror.com/webdav-server@2.6.2 - webpack: - specifier: ^5.72.0 - version: registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47)(webpack-cli@4.9.2) - webpack-cli: - specifier: ^4.9.2 - version: registry.npmmirror.com/webpack-cli@4.9.2(webpack@5.72.0) packages: github.com/walkthunder/cos-nodejs-sdk-v5/9e2d9acd9d31e202e6627766c41ade884bd298a7: - resolution: {tarball: https://codeload.github.com/walkthunder/cos-nodejs-sdk-v5/tar.gz/9e2d9acd9d31e202e6627766c41ade884bd298a7} + resolution: {commit: 9e2d9acd9d31e202e6627766c41ade884bd298a7, repo: git+ssh://git@github.com/walkthunder/cos-nodejs-sdk-v5.git, type: git} name: tencent-cos-sdk-nodejs-v5 version: 2.11.16 engines: {node: '>= 6'} @@ -1413,13 +1407,6 @@ packages: '@cspotcode/source-map-consumer': registry.npmmirror.com/@cspotcode/source-map-consumer@0.8.0 dev: true - registry.npmmirror.com/@discoveryjs/json-ext@0.5.7: - resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz} - name: '@discoveryjs/json-ext' - version: 0.5.7 - engines: {node: '>=10.0.0'} - dev: true - registry.npmmirror.com/@electron/get@1.14.1: resolution: {integrity: sha512-BrZYyL/6m0ZXz/lDxy/nlVhQz+WF+iPS6qXolEU8atw7h6v1aYkjwJZ63m+bJMBTxDE66X+r2tPS4a/8C82sZw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@electron/get/-/get-1.14.1.tgz} name: '@electron/get' @@ -2158,46 +2145,6 @@ packages: '@xtuc/long': registry.npmmirror.com/@xtuc/long@4.2.2 dev: true - registry.npmmirror.com/@webpack-cli/configtest@1.2.0(webpack-cli@4.9.2)(webpack@5.72.0): - resolution: {integrity: sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@webpack-cli/configtest/-/configtest-1.2.0.tgz} - id: registry.npmmirror.com/@webpack-cli/configtest/1.2.0 - name: '@webpack-cli/configtest' - version: 1.2.0 - peerDependencies: - webpack: 4.x.x || 5.x.x - webpack-cli: 4.x.x - dependencies: - webpack: registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47)(webpack-cli@4.9.2) - webpack-cli: registry.npmmirror.com/webpack-cli@4.9.2(webpack@5.72.0) - dev: true - - registry.npmmirror.com/@webpack-cli/info@1.5.0(webpack-cli@4.9.2): - resolution: {integrity: sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@webpack-cli/info/-/info-1.5.0.tgz} - id: registry.npmmirror.com/@webpack-cli/info/1.5.0 - name: '@webpack-cli/info' - version: 1.5.0 - peerDependencies: - webpack-cli: 4.x.x - dependencies: - envinfo: registry.npmmirror.com/envinfo@7.9.0 - webpack-cli: registry.npmmirror.com/webpack-cli@4.9.2(webpack@5.72.0) - dev: true - - registry.npmmirror.com/@webpack-cli/serve@1.7.0(webpack-cli@4.9.2): - resolution: {integrity: sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@webpack-cli/serve/-/serve-1.7.0.tgz} - id: registry.npmmirror.com/@webpack-cli/serve/1.7.0 - name: '@webpack-cli/serve' - version: 1.7.0 - peerDependencies: - webpack-cli: 4.x.x - webpack-dev-server: '*' - peerDependenciesMeta: - webpack-dev-server: - optional: true - dependencies: - webpack-cli: registry.npmmirror.com/webpack-cli@4.9.2(webpack@5.72.0) - dev: true - registry.npmmirror.com/@xtuc/ieee754@1.2.0: resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz} name: '@xtuc/ieee754' @@ -3028,17 +2975,6 @@ packages: wrap-ansi: registry.npmmirror.com/wrap-ansi@7.0.0 dev: true - registry.npmmirror.com/clone-deep@4.0.1: - resolution: {integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/clone-deep/-/clone-deep-4.0.1.tgz} - name: clone-deep - version: 4.0.1 - engines: {node: '>=6'} - dependencies: - is-plain-object: registry.npmmirror.com/is-plain-object@2.0.4 - kind-of: registry.npmmirror.com/kind-of@6.0.3 - shallow-clone: registry.npmmirror.com/shallow-clone@3.0.1 - dev: true - registry.npmmirror.com/clone-response@1.0.3: resolution: {integrity: sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/clone-response/-/clone-response-1.0.3.tgz} name: clone-response @@ -3093,12 +3029,6 @@ packages: name: color-name version: 1.1.4 - registry.npmmirror.com/colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/colorette/-/colorette-2.0.20.tgz} - name: colorette - version: 2.0.20 - dev: true - registry.npmmirror.com/combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz} name: combined-stream @@ -3112,13 +3042,6 @@ packages: name: commander version: 2.20.3 - registry.npmmirror.com/commander@7.2.0: - resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/commander/-/commander-7.2.0.tgz} - name: commander - version: 7.2.0 - engines: {node: '>= 10'} - dev: true - registry.npmmirror.com/commist@1.1.0: resolution: {integrity: sha512-rraC8NXWOEjhADbZe9QBNzLAN5Q3fsTPQtBV+fEVj6xKIgDgNiEVE6ZNfHpZOqfQ21YUzfVNUXLOEZquYvQPPg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/commist/-/commist-1.1.0.tgz} name: commist @@ -3738,14 +3661,6 @@ packages: engines: {node: '>=6'} dev: false - registry.npmmirror.com/envinfo@7.9.0: - resolution: {integrity: sha512-RODB4txU+xImYDemN5DqaKC0CHk05XSVkOX4pq0hK26Qx+1LChkuOyUDlGEjYb3ACr0n9qBhFjg37hQuJvpkRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/envinfo/-/envinfo-7.9.0.tgz} - name: envinfo - version: 7.9.0 - engines: {node: '>=4'} - hasBin: true - dev: true - registry.npmmirror.com/es-module-lexer@0.9.3: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz} name: es-module-lexer @@ -4200,23 +4115,6 @@ packages: safe-buffer: registry.npmmirror.com/safe-buffer@5.2.1 dev: false - registry.npmmirror.com/execa@5.1.1: - resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/execa/-/execa-5.1.1.tgz} - name: execa - version: 5.1.1 - engines: {node: '>=10'} - dependencies: - cross-spawn: registry.npmmirror.com/cross-spawn@7.0.3 - get-stream: registry.npmmirror.com/get-stream@6.0.1 - human-signals: registry.npmmirror.com/human-signals@2.1.0 - is-stream: registry.npmmirror.com/is-stream@2.0.1 - merge-stream: registry.npmmirror.com/merge-stream@2.0.0 - npm-run-path: registry.npmmirror.com/npm-run-path@4.0.1 - onetime: registry.npmmirror.com/onetime@5.1.2 - signal-exit: registry.npmmirror.com/signal-exit@3.0.7 - strip-final-newline: registry.npmmirror.com/strip-final-newline@2.0.0 - dev: true - registry.npmmirror.com/extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz} name: extend @@ -4288,13 +4186,6 @@ packages: strnum: registry.npmmirror.com/strnum@1.0.5 dev: false - registry.npmmirror.com/fastest-levenshtein@1.0.16: - resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz} - name: fastest-levenshtein - version: 1.0.16 - engines: {node: '>= 4.9.1'} - dev: true - registry.npmmirror.com/fastestsmallesttextencoderdecoder@1.0.22: resolution: {integrity: sha512-Pb8d48e+oIuY4MaM64Cd7OW1gt4nxCHs7/ddPPZ/Ic3sg8yVGM7O9wDvZ7us6ScaUupzM+pfBolwtYhN1IxBIw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fastestsmallesttextencoderdecoder/-/fastestsmallesttextencoderdecoder-1.0.22.tgz} name: fastestsmallesttextencoderdecoder @@ -4351,6 +4242,7 @@ packages: dependencies: locate-path: registry.npmmirror.com/locate-path@5.0.0 path-exists: registry.npmmirror.com/path-exists@4.0.0 + dev: false registry.npmmirror.com/find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz} @@ -4515,6 +4407,7 @@ packages: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz} name: function-bind version: 1.1.1 + dev: false registry.npmmirror.com/functional-red-black-tree@1.0.1: resolution: {integrity: sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz} @@ -4575,13 +4468,6 @@ packages: pump: registry.npmmirror.com/pump@3.0.0 dev: false - registry.npmmirror.com/get-stream@6.0.1: - resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/get-stream/-/get-stream-6.0.1.tgz} - name: get-stream - version: 6.0.1 - engines: {node: '>=10'} - dev: true - registry.npmmirror.com/getpass@0.1.7: resolution: {integrity: sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/getpass/-/getpass-0.1.7.tgz} name: getpass @@ -4830,6 +4716,7 @@ packages: engines: {node: '>= 0.4.0'} dependencies: function-bind: registry.npmmirror.com/function-bind@1.1.1 + dev: false registry.npmmirror.com/hash-base@3.1.0: resolution: {integrity: sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/hash-base/-/hash-base-3.1.0.tgz} @@ -4938,13 +4825,6 @@ packages: transitivePeerDependencies: - supports-color - registry.npmmirror.com/human-signals@2.1.0: - resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/human-signals/-/human-signals-2.1.0.tgz} - name: human-signals - version: 2.1.0 - engines: {node: '>=10.17.0'} - dev: true - registry.npmmirror.com/iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz} name: iconv-lite @@ -4983,17 +4863,6 @@ packages: resolve-from: registry.npmmirror.com/resolve-from@4.0.0 dev: false - registry.npmmirror.com/import-local@3.1.0: - resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/import-local/-/import-local-3.1.0.tgz} - name: import-local - version: 3.1.0 - engines: {node: '>=8'} - hasBin: true - dependencies: - pkg-dir: registry.npmmirror.com/pkg-dir@4.2.0 - resolve-cwd: registry.npmmirror.com/resolve-cwd@3.0.0 - dev: true - registry.npmmirror.com/imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz} name: imurmurhash @@ -5027,13 +4896,6 @@ packages: version: 1.3.8 dev: false - registry.npmmirror.com/interpret@2.2.0: - resolution: {integrity: sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/interpret/-/interpret-2.2.0.tgz} - name: interpret - version: 2.2.0 - engines: {node: '>= 0.10'} - dev: true - registry.npmmirror.com/invert-kv@1.0.0: resolution: {integrity: sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/invert-kv/-/invert-kv-1.0.0.tgz} name: invert-kv @@ -5073,14 +4935,6 @@ packages: engines: {node: '>= 0.4'} dev: false - registry.npmmirror.com/is-core-module@2.12.1: - resolution: {integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-core-module/-/is-core-module-2.12.1.tgz} - name: is-core-module - version: 2.12.1 - dependencies: - has: registry.npmmirror.com/has@1.0.3 - dev: true - registry.npmmirror.com/is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz} name: is-extglob @@ -5162,28 +5016,12 @@ packages: engines: {node: '>=8'} dev: true - registry.npmmirror.com/is-plain-object@2.0.4: - resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz} - name: is-plain-object - version: 2.0.4 - engines: {node: '>=0.10.0'} - dependencies: - isobject: registry.npmmirror.com/isobject@3.0.1 - dev: true - registry.npmmirror.com/is-potential-custom-element-name@1.0.1: resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz} name: is-potential-custom-element-name version: 1.0.1 dev: true - registry.npmmirror.com/is-stream@2.0.1: - resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-stream/-/is-stream-2.0.1.tgz} - name: is-stream - version: 2.0.1 - engines: {node: '>=8'} - dev: true - registry.npmmirror.com/is-typed-array@1.1.10: resolution: {integrity: sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-typed-array/-/is-typed-array-1.1.10.tgz} name: is-typed-array @@ -5227,13 +5065,6 @@ packages: name: isexe version: 2.0.0 - registry.npmmirror.com/isobject@3.0.1: - resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/isobject/-/isobject-3.0.1.tgz} - name: isobject - version: 3.0.1 - engines: {node: '>=0.10.0'} - dev: true - registry.npmmirror.com/isomorphic-ws@4.0.1(ws@7.5.9): resolution: {integrity: sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz} id: registry.npmmirror.com/isomorphic-ws/4.0.1 @@ -5451,13 +5282,6 @@ packages: json-buffer: registry.npmmirror.com/json-buffer@3.0.0 dev: false - registry.npmmirror.com/kind-of@6.0.3: - resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz} - name: kind-of - version: 6.0.3 - engines: {node: '>=0.10.0'} - dev: true - registry.npmmirror.com/layerr@0.1.2: resolution: {integrity: sha512-ob5kTd9H3S4GOG2nVXyQhOu9O8nBgP555XxWPkJI0tR0JeRilfyTp8WtPdIJHLXBmHMSdEq5+KMxiYABeScsIQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/layerr/-/layerr-0.1.2.tgz} name: layerr @@ -5546,6 +5370,7 @@ packages: engines: {node: '>=8'} dependencies: p-locate: registry.npmmirror.com/p-locate@4.1.0 + dev: false registry.npmmirror.com/locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz} @@ -5793,6 +5618,7 @@ packages: name: mimic-fn version: 2.1.0 engines: {node: '>=6'} + dev: false registry.npmmirror.com/mimic-fn@3.1.0: resolution: {integrity: sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/mimic-fn/-/mimic-fn-3.1.0.tgz} @@ -6116,15 +5942,6 @@ packages: dev: false optional: true - registry.npmmirror.com/npm-run-path@4.0.1: - resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/npm-run-path/-/npm-run-path-4.0.1.tgz} - name: npm-run-path - version: 4.0.1 - engines: {node: '>=8'} - dependencies: - path-key: registry.npmmirror.com/path-key@3.1.1 - dev: true - registry.npmmirror.com/npmlog@1.2.1: resolution: {integrity: sha512-1J5KqSRvESP6XbjPaXt2H6qDzgizLTM7x0y1cXIjP2PpvdCqyNC7TO3cPRKsuYlElbi/DwkzRRdG2zpmE0IktQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/npmlog/-/npmlog-1.2.1.tgz} name: npmlog @@ -6211,6 +6028,7 @@ packages: engines: {node: '>=6'} dependencies: mimic-fn: registry.npmmirror.com/mimic-fn@2.1.0 + dev: false registry.npmmirror.com/optionator@0.8.3: resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/optionator/-/optionator-0.8.3.tgz} @@ -6263,6 +6081,7 @@ packages: engines: {node: '>=6'} dependencies: p-try: registry.npmmirror.com/p-try@2.2.0 + dev: false registry.npmmirror.com/p-limit@3.1.0: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz} @@ -6288,6 +6107,7 @@ packages: engines: {node: '>=8'} dependencies: p-limit: registry.npmmirror.com/p-limit@2.3.0 + dev: false registry.npmmirror.com/p-locate@5.0.0: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz} @@ -6319,6 +6139,7 @@ packages: name: p-try version: 2.2.0 engines: {node: '>=6'} + dev: false registry.npmmirror.com/parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz} @@ -6386,12 +6207,6 @@ packages: version: 3.1.1 engines: {node: '>=8'} - registry.npmmirror.com/path-parse@1.0.7: - resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz} - name: path-parse - version: 1.0.7 - dev: true - registry.npmmirror.com/path-posix@1.0.0: resolution: {integrity: sha512-1gJ0WpNIiYcQydgg3Ed8KzvIqTsDpNwq+cjBCssvBtuTWjEqY1AW+i+OepiEMqDCzyro9B2sLAe4RBPajMYFiA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-posix/-/path-posix-1.0.0.tgz} name: path-posix @@ -6456,15 +6271,6 @@ packages: dev: false optional: true - registry.npmmirror.com/pkg-dir@4.2.0: - resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/pkg-dir/-/pkg-dir-4.2.0.tgz} - name: pkg-dir - version: 4.2.0 - engines: {node: '>=8'} - dependencies: - find-up: registry.npmmirror.com/find-up@4.1.0 - dev: true - registry.npmmirror.com/pkg-up@3.1.0: resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/pkg-up/-/pkg-up-3.1.0.tgz} name: pkg-up @@ -6719,15 +6525,6 @@ packages: picomatch: registry.npmmirror.com/picomatch@2.3.1 dev: true - registry.npmmirror.com/rechoir@0.7.1: - resolution: {integrity: sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rechoir/-/rechoir-0.7.1.tgz} - name: rechoir - version: 0.7.1 - engines: {node: '>= 0.10'} - dependencies: - resolve: registry.npmmirror.com/resolve@1.22.2 - dev: true - registry.npmmirror.com/regenerator-runtime@0.13.11: resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz} name: regenerator-runtime @@ -6800,15 +6597,6 @@ packages: name: requires-port version: 1.0.0 - registry.npmmirror.com/resolve-cwd@3.0.0: - resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz} - name: resolve-cwd - version: 3.0.0 - engines: {node: '>=8'} - dependencies: - resolve-from: registry.npmmirror.com/resolve-from@5.0.0 - dev: true - registry.npmmirror.com/resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz} name: resolve-from @@ -6816,24 +6604,6 @@ packages: engines: {node: '>=4'} dev: false - registry.npmmirror.com/resolve-from@5.0.0: - resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resolve-from/-/resolve-from-5.0.0.tgz} - name: resolve-from - version: 5.0.0 - engines: {node: '>=8'} - dev: true - - registry.npmmirror.com/resolve@1.22.2: - resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resolve/-/resolve-1.22.2.tgz} - name: resolve - version: 1.22.2 - hasBin: true - dependencies: - is-core-module: registry.npmmirror.com/is-core-module@2.12.1 - path-parse: registry.npmmirror.com/path-parse@1.0.7 - supports-preserve-symlinks-flag: registry.npmmirror.com/supports-preserve-symlinks-flag@1.0.0 - dev: true - registry.npmmirror.com/responselike@1.0.2: resolution: {integrity: sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/responselike/-/responselike-1.0.2.tgz} name: responselike @@ -7030,15 +6800,6 @@ packages: safe-buffer: registry.npmmirror.com/safe-buffer@5.2.1 dev: false - registry.npmmirror.com/shallow-clone@3.0.1: - resolution: {integrity: sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/shallow-clone/-/shallow-clone-3.0.1.tgz} - name: shallow-clone - version: 3.0.1 - engines: {node: '>=8'} - dependencies: - kind-of: registry.npmmirror.com/kind-of@6.0.3 - dev: true - registry.npmmirror.com/shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz} name: shebang-command @@ -7067,12 +6828,6 @@ packages: version: 1.0.1 dev: false - registry.npmmirror.com/signal-exit@3.0.7: - resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/signal-exit/-/signal-exit-3.0.7.tgz} - name: signal-exit - version: 3.0.7 - dev: true - registry.npmmirror.com/slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz} name: slash @@ -7210,13 +6965,6 @@ packages: dependencies: ansi-regex: registry.npmmirror.com/ansi-regex@5.0.1 - registry.npmmirror.com/strip-final-newline@2.0.0: - resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz} - name: strip-final-newline - version: 2.0.0 - engines: {node: '>=6'} - dev: true - registry.npmmirror.com/strip-json-comments@2.0.1: resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz} name: strip-json-comments @@ -7270,13 +7018,6 @@ packages: has-flag: registry.npmmirror.com/has-flag@4.0.0 dev: true - registry.npmmirror.com/supports-preserve-symlinks-flag@1.0.0: - resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz} - name: supports-preserve-symlinks-flag - version: 1.0.0 - engines: {node: '>= 0.4'} - dev: true - registry.npmmirror.com/symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/symbol-tree/-/symbol-tree-3.2.4.tgz} name: symbol-tree @@ -7356,7 +7097,7 @@ packages: schema-utils: registry.npmmirror.com/schema-utils@3.3.0 serialize-javascript: registry.npmmirror.com/serialize-javascript@6.0.1 terser: registry.npmmirror.com/terser@5.18.1 - webpack: registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47)(webpack-cli@4.9.2) + webpack: registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47) dev: true registry.npmmirror.com/terser@5.18.1: @@ -7451,7 +7192,7 @@ packages: micromatch: registry.npmmirror.com/micromatch@4.0.5 semver: registry.npmmirror.com/semver@7.5.3 typescript: registry.npmmirror.com/typescript@4.7.4 - webpack: registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47)(webpack-cli@4.9.2) + webpack: registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47) dev: true registry.npmmirror.com/ts-node@10.7.0(@types/node@16.11.6)(typescript@4.7.4): @@ -7838,54 +7579,6 @@ packages: engines: {node: '>=12'} dev: true - registry.npmmirror.com/webpack-cli@4.9.2(webpack@5.72.0): - resolution: {integrity: sha512-m3/AACnBBzK/kMTcxWHcZFPrw/eQuY4Df1TxvIWfWM2x7mRqBQCqKEd96oCUa9jkapLBaFfRce33eGDb4Pr7YQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/webpack-cli/-/webpack-cli-4.9.2.tgz} - id: registry.npmmirror.com/webpack-cli/4.9.2 - name: webpack-cli - version: 4.9.2 - engines: {node: '>=10.13.0'} - hasBin: true - peerDependencies: - '@webpack-cli/generators': '*' - '@webpack-cli/migrate': '*' - webpack: 4.x.x || 5.x.x - webpack-bundle-analyzer: '*' - webpack-dev-server: '*' - peerDependenciesMeta: - '@webpack-cli/generators': - optional: true - '@webpack-cli/migrate': - optional: true - webpack-bundle-analyzer: - optional: true - webpack-dev-server: - optional: true - dependencies: - '@discoveryjs/json-ext': registry.npmmirror.com/@discoveryjs/json-ext@0.5.7 - '@webpack-cli/configtest': registry.npmmirror.com/@webpack-cli/configtest@1.2.0(webpack-cli@4.9.2)(webpack@5.72.0) - '@webpack-cli/info': registry.npmmirror.com/@webpack-cli/info@1.5.0(webpack-cli@4.9.2) - '@webpack-cli/serve': registry.npmmirror.com/@webpack-cli/serve@1.7.0(webpack-cli@4.9.2) - colorette: registry.npmmirror.com/colorette@2.0.20 - commander: registry.npmmirror.com/commander@7.2.0 - execa: registry.npmmirror.com/execa@5.1.1 - fastest-levenshtein: registry.npmmirror.com/fastest-levenshtein@1.0.16 - import-local: registry.npmmirror.com/import-local@3.1.0 - interpret: registry.npmmirror.com/interpret@2.2.0 - rechoir: registry.npmmirror.com/rechoir@0.7.1 - webpack: registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47)(webpack-cli@4.9.2) - webpack-merge: registry.npmmirror.com/webpack-merge@5.9.0 - dev: true - - registry.npmmirror.com/webpack-merge@5.9.0: - resolution: {integrity: sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/webpack-merge/-/webpack-merge-5.9.0.tgz} - name: webpack-merge - version: 5.9.0 - engines: {node: '>=10.0.0'} - dependencies: - clone-deep: registry.npmmirror.com/clone-deep@4.0.1 - wildcard: registry.npmmirror.com/wildcard@2.0.1 - dev: true - registry.npmmirror.com/webpack-sources@3.2.3: resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/webpack-sources/-/webpack-sources-3.2.3.tgz} name: webpack-sources @@ -7893,7 +7586,7 @@ packages: engines: {node: '>=10.13.0'} dev: true - registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47)(webpack-cli@4.9.2): + registry.npmmirror.com/webpack@5.72.0(esbuild@0.14.47): resolution: {integrity: sha512-qmSmbspI0Qo5ld49htys8GY9XhS9CGqFoHTsOVAnjBdg0Zn79y135R+k4IR4rKK6+eKaabMhJwiVB7xw0SJu5w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/webpack/-/webpack-5.72.0.tgz} id: registry.npmmirror.com/webpack/5.72.0 name: webpack @@ -7929,7 +7622,6 @@ packages: tapable: registry.npmmirror.com/tapable@2.2.1 terser-webpack-plugin: registry.npmmirror.com/terser-webpack-plugin@5.3.9(esbuild@0.14.47)(webpack@5.72.0) watchpack: registry.npmmirror.com/watchpack@2.4.0 - webpack-cli: registry.npmmirror.com/webpack-cli@4.9.2(webpack@5.72.0) webpack-sources: registry.npmmirror.com/webpack-sources@3.2.3 transitivePeerDependencies: - '@swc/core' @@ -8020,12 +7712,6 @@ packages: dependencies: isexe: registry.npmmirror.com/isexe@2.0.0 - registry.npmmirror.com/wildcard@2.0.1: - resolution: {integrity: sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/wildcard/-/wildcard-2.0.1.tgz} - name: wildcard - version: 2.0.1 - dev: true - registry.npmmirror.com/window-size@0.1.4: resolution: {integrity: sha512-2thx4pB0cV3h+Bw7QmMXcEbdmOzv9t0HFplJH/Lz6yu60hXYy5RT8rUu+wlIreVxWsGN20mo+MHeCSfUpQBwPw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/window-size/-/window-size-0.1.4.tgz} name: window-size diff --git a/src/langs/en.json b/src/langs/en.json index 5febb1d..102f14d 100644 --- a/src/langs/en.json +++ b/src/langs/en.json @@ -264,10 +264,10 @@ "settings_outputbasepathvaultid": "Output Vault Base Path And Randomly Assigned ID", "settings_outputbasepathvaultid_desc": "For debugging purposes.", "settings_outputbasepathvaultid_button": "Output", - "settings_resetcache": "Reset Local Internal Cache/Databases", - "settings_resetcache_desc": "Reset local internal caches/databases (for debugging purposes). You would want to reload the plugin after resetting this. This option will not empty the {s3, password...} settings.", + "settings_resetcache": "Reset Local Syncing Cache", + "settings_resetcache_desc": "Reset local syncing caches data (if syncing went wrong or debug). This option will not delete your local settings like password or other COS config.", "settings_resetcache_button": "Reset", - "settings_resetcache_notice": "Local internal cache/databases deleted. Please manually reload the plugin.", + "settings_resetcache_notice": "Local syncing cache deleted. Please manually reload the plugin.", "syncalgov2_title": "Invio has a better sync algorithm", "syncalgov2_texts": "Welcome to Invio!\nIn addition to your notes, it also requires uploading additional files with metadata (_invio-metadata-on-remote.{json,bin}) to your cloud service COS. By reading this information, another device can determine which files or folders have been deleted on the first device.\nIf you agree with this policy, please click the 'Agree' button and start enjoying this plugin! Please note that before using the plugin, it's important to back up your vault.\nIf you do not agree with this policy, you should stop using this version and any future versions of Invio. After clicking 'Disagree', the plugin will automatically stop running (unload), and you will need to manually disable it in Obsidian settings.\nPlease let me know if there is anything else I can assist you with!", diff --git a/src/langs/zh_cn.json b/src/langs/zh_cn.json index 9df632b..b7ea18f 100644 --- a/src/langs/zh_cn.json +++ b/src/langs/zh_cn.json @@ -263,10 +263,10 @@ "settings_outputbasepathvaultid": "输出资料库对应的位置和随机分配的 ID", "settings_outputbasepathvaultid_desc": "用于调试。", "settings_outputbasepathvaultid_button": "输出", - "settings_resetcache": "重设本地缓存和数据库", - "settings_resetcache_desc": "(出于调试原因)重设本地缓存和数据库。您需要在重设之后重新载入此插件。本重设不会删除 s3,密码……等设定。", + "settings_resetcache": "清空本地同步缓存数据", + "settings_resetcache_desc": "清除本地同步产生的缓存数据,遇到同步问题或者调试时使用。(不会清除密码等本地配置)", "settings_resetcache_button": "重设", - "settings_resetcache_notice": "本地同步缓存和数据库已被删除。请手动重新载入此插件。", + "settings_resetcache_notice": "本地同步缓存数据已删除。请手动重新加载插件。", "syncalgov2_title": "Invio 的同步算法", "syncalgov2_texts": "欢迎使用 Invio!\n 除了您的笔记之外,它还需要上传额外的带有元信息的文件 _invio-metadata-on-remote.{json,bin} 到您的云服务COS上。\n通过读取这些信息,另一台设备可以知道什么文件或文件夹在第一台设备上被删除了。\n如果您同意此策略,请点击按钮 \"同意\",然后开始享用此插件!且特别要注意:使用插件之前,请首先备份好您的库(Vault)!\n如果您不同意此策略,您应该停止使用此版本和之后版本的 Invio。点击 \"不同意\" 之后,插件会自动停止运行(unload),然后您需要 Obsidian 设置里手动停用(disable)此插件。", diff --git a/src/langs/zh_tw.json b/src/langs/zh_tw.json index 74bd7a8..1b4781f 100644 --- a/src/langs/zh_tw.json +++ b/src/langs/zh_tw.json @@ -263,10 +263,10 @@ "settings_outputbasepathvaultid": "輸出資料庫對應的位置和隨機分配的 ID", "settings_outputbasepathvaultid_desc": "用於除錯。", "settings_outputbasepathvaultid_button": "輸出", - "settings_resetcache": "重設本地快取和資料庫", - "settings_resetcache_desc": "(出於除錯原因)重設本地快取和資料庫。您需要在重設之後重新載入此外掛。本重設不會刪除 s3,密碼……等設定。", + "settings_resetcache": "清空本地同步缓存数据", + "settings_resetcache_desc": "清除本地同步产生的缓存数据,遇到同步问题或者调试时使用。(不会清除密码等本地配置)", "settings_resetcache_button": "重設", - "settings_resetcache_notice": "本地同步快取和資料庫已被刪除。請手動重新載入此外掛。", + "settings_resetcache_notice": "本地同步数据已刪除。請手動重新載入外掛。", "syncalgov2_title": "Invio 的同步算法", "syncalgov2_texts": "歡迎使用 Invio!除了您的筆記之外,它還需要上傳額外帶有元資訊的檔案 _invio-metadata-on-remote.{json,bin} 到您的雲服務 COS 上。通過讀取這些資訊,另一台設備可以知道在第一台設備上被刪除了哪些檔案或資料夾。如果您同意此策略,請點擊按鈕 \"同意\",然後開始享用此插件!特別要注意:在使用插件之前,請先好好備份您的庫(Vault)!如果您不同意此策略,您應該停止使用此版本和之後的 Invio。點擊 \"不同意\" 之後,插件會自動停止運行(unload),然後您需要在 Obsidian 設定中手動停用(disable)此插件。", diff --git a/src/settings.ts b/src/settings.ts index 10836c7..5402066 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -894,151 +894,6 @@ export class InvioSettingTab extends PluginSettingTab { const debugDiv = containerEl.createEl("div"); debugDiv.createEl("h2", { text: t("settings_debug") }); - new Setting(debugDiv) - .setName(t("settings_debuglevel")) - .setDesc(t("settings_debuglevel_desc")) - .addDropdown(async (dropdown) => { - dropdown.addOption("info", "info"); - dropdown.addOption("debug", "debug"); - dropdown - .setValue(this.plugin.settings.currLogLevel) - .onChange(async (val: string) => { - this.plugin.settings.currLogLevel = val; - log.setLevel(val as any); - await this.plugin.saveSettings(); - log.info(`the log level is changed to ${val}`); - }); - }); - - new Setting(debugDiv) - .setName(t("settings_outputsettingsconsole")) - .setDesc(t("settings_outputsettingsconsole_desc")) - .addButton(async (button) => { - button.setButtonText(t("settings_outputsettingsconsole_button")); - button.onClick(async () => { - const c = messyConfigToNormal(await this.plugin.loadData()); - log.info(c); - new Notice(t("settings_outputsettingsconsole_notice")); - }); - }); - - new Setting(debugDiv) - .setName(t("settings_syncplans")) - .setDesc(t("settings_syncplans_desc")) - .addButton(async (button) => { - button.setButtonText(t("settings_syncplans_button_json")); - button.onClick(async () => { - await exportVaultSyncPlansToFiles( - this.plugin.db, - this.app.vault, - this.plugin.vaultRandomID, - "json" - ); - new Notice(t("settings_syncplans_notice")); - }); - }) - .addButton(async (button) => { - button.setButtonText(t("settings_syncplans_button_table")); - button.onClick(async () => { - await exportVaultSyncPlansToFiles( - this.plugin.db, - this.app.vault, - this.plugin.vaultRandomID, - "table" - ); - new Notice(t("settings_syncplans_notice")); - }); - }); - new Setting(debugDiv) - .setName(t("settings_delsyncplans")) - .setDesc(t("settings_delsyncplans_desc")) - .addButton(async (button) => { - button.setButtonText(t("settings_delsyncplans_button")); - button.onClick(async () => { - await clearAllSyncPlanRecords(this.plugin.db); - new Notice(t("settings_delsyncplans_notice")); - }); - }); - - new Setting(debugDiv) - .setName(t("settings_logtodb")) - .setDesc(t("settings_logtodb_desc")) - .addDropdown(async (dropdown) => { - dropdown.addOption("enable", t("enable")); - dropdown.addOption("disable", t("disable")); - dropdown - .setValue(this.plugin.settings.logToDB ? "enable" : "disable") - .onChange(async (val: string) => { - const logToDB = val === "enable"; - if (logToDB) { - applyLogWriterInplace((...msg: any[]) => { - insertLoggerOutputByVault( - this.plugin.db, - this.plugin.vaultRandomID, - ...msg - ); - }); - } else { - restoreLogWritterInplace(); - } - clearExpiredLoggerOutputRecords(this.plugin.db); - this.plugin.settings.logToDB = logToDB; - await this.plugin.saveSettings(); - }); - }); - - new Setting(debugDiv) - .setName(t("settings_logtodbexport")) - .setDesc( - t("settings_logtodbexport_desc", { - debugFolder: DEFAULT_DEBUG_FOLDER, - }) - ) - .addButton(async (button) => { - button.setButtonText(t("settings_logtodbexport_button")); - button.onClick(async () => { - await exportVaultLoggerOutputToFiles( - this.plugin.db, - this.app.vault, - this.plugin.vaultRandomID - ); - new Notice(t("settings_logtodbexport_notice")); - }); - }); - - new Setting(debugDiv) - .setName(t("settings_logtodbclear")) - .setDesc(t("settings_logtodbclear_desc")) - .addButton(async (button) => { - button.setButtonText(t("settings_logtodbclear_button")); - button.onClick(async () => { - await clearAllLoggerOutputRecords(this.plugin.db); - new Notice(t("settings_logtodbclear_notice")); - }); - }); - - new Setting(debugDiv) - .setName(t("settings_delsyncmap")) - .setDesc(t("settings_delsyncmap_desc")) - .addButton(async (button) => { - button.setButtonText(t("settings_delsyncmap_button")); - button.onClick(async () => { - await clearAllSyncMetaMapping(this.plugin.db); - new Notice(t("settings_delsyncmap_notice")); - }); - }); - - new Setting(debugDiv) - .setName(t("settings_outputbasepathvaultid")) - .setDesc(t("settings_outputbasepathvaultid_desc")) - .addButton(async (button) => { - button.setButtonText(t("settings_outputbasepathvaultid_button")); - button.onClick(async () => { - new Notice(this.plugin.getVaultBasePath()); - new Notice(this.plugin.vaultRandomID); - }); - }); - new Setting(debugDiv) .setName(t("settings_resetcache")) .setDesc(t("settings_resetcache_desc")) diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 55feef5..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,88 +0,0 @@ -require("dotenv").config(); -const path = require("path"); -const webpack = require("webpack"); -const TerserPlugin = require("terser-webpack-plugin"); - -const DEFAULT_DROPBOX_APP_KEY = process.env.DROPBOX_APP_KEY || ""; -const DEFAULT_ONEDRIVE_CLIENT_ID = process.env.ONEDRIVE_CLIENT_ID || ""; -const DEFAULT_ONEDRIVE_AUTHORITY = process.env.ONEDRIVE_AUTHORITY || ""; - -const isProd = process.env.NODE_ENV === 'production'; -console.log('prod - ', isProd); - -module.exports = { - entry: "./src/main.ts", - target: "web", - output: { - filename: "main.js", - path: __dirname, - libraryTarget: "commonjs", - }, - plugins: [ - new webpack.DefinePlugin({ - "process.env.DEFAULT_DROPBOX_APP_KEY": `"${DEFAULT_DROPBOX_APP_KEY}"`, - "process.env.DEFAULT_ONEDRIVE_CLIENT_ID": `"${DEFAULT_ONEDRIVE_CLIENT_ID}"`, - "process.env.DEFAULT_ONEDRIVE_AUTHORITY": `"${DEFAULT_ONEDRIVE_AUTHORITY}"`, - }), - // Work around for Buffer is undefined: - // https://github.com/webpack/changelog-v5/issues/10 - new webpack.ProvidePlugin({ - Buffer: ["buffer", "Buffer"], - }), - new webpack.ProvidePlugin({ - process: "process/browser", - }), - ], - module: { - rules: [ - { - test: /\.tsx?$/, - use: "ts-loader", - exclude: /node_modules/, - }, - { - test: /\.svg?$/, - type: "asset/source", - }, - ], - }, - resolve: { - extensions: [".tsx", ".ts", ".js"], - mainFields: ["browser", "module", "main"], - fallback: { - // assert: require.resolve("assert"), - // buffer: require.resolve("buffer/"), - // console: require.resolve("console-browserify"), - // constants: require.resolve("constants-browserify"), - crypto: require.resolve("crypto-browserify"), - // crypto: false, - // domain: require.resolve("domain-browser"), - // events: require.resolve("events"), - // http: require.resolve("stream-http"), - // https: require.resolve("https-browserify"), - net: false, - // os: require.resolve("os-browserify/browser"), - path: require.resolve("path-browserify"), - // punycode: require.resolve("punycode"), - process: require.resolve("process/browser"), - // querystring: require.resolve("querystring-es3"), - stream: require.resolve("stream-browserify"), - // string_decoder: require.resolve("string_decoder"), - // sys: require.resolve("util"), - // timers: require.resolve("timers-browserify"), - tls: false, - // tty: require.resolve("tty-browserify"), - url: require.resolve("url/"), - // util: require.resolve("util"), - // vm: require.resolve("vm-browserify"), - // zlib: require.resolve("browserify-zlib"), - }, - }, - externals: { - obsidian: "commonjs2 obsidian", - }, - optimization: { - minimize: isProd, - minimizer: isProd ? [new TerserPlugin({ extractComments: false })] : [], - }, -};