@nocobase/plugin-verification 1.4.0-alpha → 1.4.0-alpha.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/dist/externalVersion.js +7 -7
- package/dist/node_modules/@alicloud/dysmsapi20170525/package.json +1 -1
- package/dist/node_modules/@alicloud/openapi-client/package.json +1 -1
- package/dist/node_modules/@alicloud/tea-util/package.json +1 -1
- package/dist/node_modules/tencentcloud-sdk-nodejs/package.json +1 -1
- package/dist/server/Plugin.js +4 -3
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -12,14 +12,14 @@ module.exports = {
|
|
|
12
12
|
"@formily/core": "2.3.0",
|
|
13
13
|
"@formily/react": "2.3.0",
|
|
14
14
|
"react": "18.2.0",
|
|
15
|
-
"@nocobase/client": "1.4.0-alpha",
|
|
15
|
+
"@nocobase/client": "1.4.0-alpha.0",
|
|
16
16
|
"antd": "5.12.8",
|
|
17
|
-
"@nocobase/actions": "1.4.0-alpha",
|
|
18
|
-
"@nocobase/database": "1.4.0-alpha",
|
|
19
|
-
"@nocobase/resourcer": "1.4.0-alpha",
|
|
20
|
-
"@nocobase/server": "1.4.0-alpha",
|
|
21
|
-
"@nocobase/utils": "1.4.0-alpha",
|
|
17
|
+
"@nocobase/actions": "1.4.0-alpha.0",
|
|
18
|
+
"@nocobase/database": "1.4.0-alpha.0",
|
|
19
|
+
"@nocobase/resourcer": "1.4.0-alpha.0",
|
|
20
|
+
"@nocobase/server": "1.4.0-alpha.0",
|
|
21
|
+
"@nocobase/utils": "1.4.0-alpha.0",
|
|
22
22
|
"react-i18next": "11.18.6",
|
|
23
|
-
"@formily/shared": "2.3.
|
|
23
|
+
"@formily/shared": "2.3.2",
|
|
24
24
|
"dayjs": "1.11.10"
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@alicloud/dysmsapi20170525","version":"2.0.17","description":"","main":"dist/client.js","scripts":{"test":"mocha --reporter spec --timeout 3000 test/*.test.js","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Alibaba Cloud SDK","license":"Apache-2.0","devDependencies":{"@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.4","@alicloud/openapi-client":"^0.4.1","@alicloud/endpoint-util":"^0.0.1","@alicloud/openapi-util":"^0.2.9"},"files":["dist","src"],"_lastModified":"2024-
|
|
1
|
+
{"name":"@alicloud/dysmsapi20170525","version":"2.0.17","description":"","main":"dist/client.js","scripts":{"test":"mocha --reporter spec --timeout 3000 test/*.test.js","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Alibaba Cloud SDK","license":"Apache-2.0","devDependencies":{"@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.4","@alicloud/openapi-client":"^0.4.1","@alicloud/endpoint-util":"^0.0.1","@alicloud/openapi-util":"^0.2.9"},"files":["dist","src"],"_lastModified":"2024-11-06T06:28:10.454Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@alicloud/openapi-client","version":"0.4.1","description":"","main":"dist/client.js","scripts":{"test":"mocha --reporter spec --timeout 3000 test/*.test.js","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"","license":"ISC","devDependencies":{"@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.0","@alicloud/credentials":"^2","@alicloud/openapi-util":"^0.2.7","@alicloud/gateway-spi":"^0.0.8"},"files":["dist","src"],"_lastModified":"2024-
|
|
1
|
+
{"name":"@alicloud/openapi-client","version":"0.4.1","description":"","main":"dist/client.js","scripts":{"test":"mocha --reporter spec --timeout 3000 test/*.test.js","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"","license":"ISC","devDependencies":{"@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.0","@alicloud/credentials":"^2","@alicloud/openapi-util":"^0.2.7","@alicloud/gateway-spi":"^0.0.8"},"files":["dist","src"],"_lastModified":"2024-11-06T06:28:10.877Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@alicloud/tea-util","version":"1.4.4","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Jackson Tian","license":"Apache-2.0","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^12.12.26","mocha":"^7.0.1","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.1","kitx":"^2.0.0"},"files":["dist","src"],"_lastModified":"2024-
|
|
1
|
+
{"name":"@alicloud/tea-util","version":"1.4.4","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Jackson Tian","license":"Apache-2.0","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^12.12.26","mocha":"^7.0.1","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.1","kitx":"^2.0.0"},"files":["dist","src"],"_lastModified":"2024-11-06T06:28:11.077Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"tencentcloud-sdk-nodejs","version":"4.0.759","description":"腾讯云 API NODEJS SDK","main":"tencentcloud/index.js","scripts":{"test":"mocha -t 10000","build":"tsc","prettier":"prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"},"engines":{"node":">=10"},"keywords":["tencentcloudapi","tencentcloud","qcloud","sdk","js","nodejs"],"author":"tencentcloudapi","license":"Apache-2.0","dependencies":{"form-data":"^3.0.0","get-stream":"^6.0.0","https-proxy-agent":"^5.0.0","is-stream":"^2.0.0","json-bigint":"^1.0.0","node-fetch":"^2.2.0","tslib":"1.13.0"},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"https://github.com/tencentcloud/tencentcloud-sdk-nodejs"},"devDependencies":{"@types/form-data":"^2.5.0","@types/json-bigint":"^1.0.1","@types/node":"^14.0.26","@types/node-fetch":"^2.5.7","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","babel-eslint":"^10.0.2","chai":"^4.2.0","eslint":"^6.8.0","eslint-plugin-react":"^7.17.0","mocha":"^8.1.1","prettier":"^2.3.0","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2024-
|
|
1
|
+
{"name":"tencentcloud-sdk-nodejs","version":"4.0.759","description":"腾讯云 API NODEJS SDK","main":"tencentcloud/index.js","scripts":{"test":"mocha -t 10000","build":"tsc","prettier":"prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"},"engines":{"node":">=10"},"keywords":["tencentcloudapi","tencentcloud","qcloud","sdk","js","nodejs"],"author":"tencentcloudapi","license":"Apache-2.0","dependencies":{"form-data":"^3.0.0","get-stream":"^6.0.0","https-proxy-agent":"^5.0.0","is-stream":"^2.0.0","json-bigint":"^1.0.0","node-fetch":"^2.2.0","tslib":"1.13.0"},"directories":{"example":"examples","lib":"lib"},"repository":{"type":"git","url":"https://github.com/tencentcloud/tencentcloud-sdk-nodejs"},"devDependencies":{"@types/form-data":"^2.5.0","@types/json-bigint":"^1.0.1","@types/node":"^14.0.26","@types/node-fetch":"^2.5.7","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","babel-eslint":"^10.0.2","chai":"^4.2.0","eslint":"^6.8.0","eslint-plugin-react":"^7.17.0","mocha":"^8.1.1","prettier":"^2.3.0","ts-node":"^8.10.2","typescript":"^3.9.7"},"_lastModified":"2024-11-06T06:28:17.333Z"}
|
package/dist/server/Plugin.js
CHANGED
|
@@ -127,14 +127,15 @@ class PluginVerficationServer extends import_server.Plugin {
|
|
|
127
127
|
await this.importCollections(import_path.default.resolve(__dirname, "collections"));
|
|
128
128
|
await (0, import_providers.default)(this);
|
|
129
129
|
(0, import_actions2.default)(this);
|
|
130
|
-
|
|
130
|
+
const self = this;
|
|
131
|
+
app.resourceManager.use(async function verificationIntercept(context, next) {
|
|
131
132
|
const { resourceName, actionName, values } = context.action.params;
|
|
132
133
|
const key = `${resourceName}:${actionName}`;
|
|
133
|
-
const interceptor =
|
|
134
|
+
const interceptor = self.interceptors.get(key);
|
|
134
135
|
if (!interceptor || interceptor.manual) {
|
|
135
136
|
return next();
|
|
136
137
|
}
|
|
137
|
-
return
|
|
138
|
+
return self.intercept(context, next);
|
|
138
139
|
});
|
|
139
140
|
app.acl.allow("verifications", "create", "public");
|
|
140
141
|
this.app.acl.registerSnippet({
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "验证码",
|
|
5
5
|
"description": "verification setting.",
|
|
6
6
|
"description.zh-CN": "验证码配置。",
|
|
7
|
-
"version": "1.4.0-alpha",
|
|
7
|
+
"version": "1.4.0-alpha.0",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/verification",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@nocobase/test": "1.x",
|
|
32
32
|
"@nocobase/utils": "1.x"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8ffa7b54bbaf720c0c9857da4b19a99110dffc4b",
|
|
35
35
|
"keywords": [
|
|
36
36
|
"Authentication"
|
|
37
37
|
]
|