@tachybase/plugin-field-encryption 1.3.21 → 1.3.23
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/client/EncryptionFieldInterface.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +3 -4
- package/dist/server/encryption-field.d.ts +1 -1
- package/dist/server/encryption-field.js +3 -3
- package/dist/server/plugin.d.ts +1 -1
- package/dist/server/plugin.js +1 -1
- package/package.json +7 -11
package/dist/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("@
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("@tego/client")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","@tego/client"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,e(t["@tachybase/plugin-field-encryption"]={},t["@tachybase/client"],t["@tego/client"]))})(this,function(t,e,i){"use strict";var y=Object.defineProperty;var u=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var d=(t,e,i)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,p=(t,e)=>{for(var i in e||(e={}))h.call(e,i)&&d(t,i,e[i]);if(u)for(var i of u(e))g.call(e,i)&&d(t,i,e[i]);return t};var f=(t,e,i)=>new Promise((o,l)=>{var c=s=>{try{n(i.next(s))}catch(r){l(r)}},a=s=>{try{n(i.throw(s))}catch(r){l(r)}},n=s=>s.done?o(s.value):Promise.resolve(s.value).then(c,a);n((i=i.apply(t,e)).next())});const o="@tachybase/plugin-field-encryption",l=n=>e.tval(n,{ns:o});class c extends e.CollectionFieldInterface{constructor(){super(...arguments),this.name="encryption",this.type="object",this.icon="LockOutlined",this.group="advanced",this.order=10,this.title=l("Encryption"),this.default={type:"encryption",iv:i.uid(16),uiSchema:{type:"string","x-component":"Input"}},this.availableTypes=["string"],this.hasDefaultValue=!0,this.properties=p({},e.defaultProps),this.filterable={operators:[{label:'{{t("is")}}',value:"$encryptionEq",selected:!0},{label:'{{t("is not")}}',value:"$encryptionNe"},{label:'{{t("exists")}}',value:"$exists",noValue:!0},{label:'{{t("not exists")}}',value:"$notExists",noValue:!0}]}}}class a extends e.Plugin{load(){return f(this,null,function*(){this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaces([c])})}}t.PluginFieldEncryptionClient=a,t.default=a,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@
|
|
1
|
+
import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@tego/server';
|
|
2
2
|
export interface EncryptionFieldOptions extends BaseColumnFieldOptions {
|
|
3
3
|
type: 'encryption';
|
|
4
4
|
}
|
|
@@ -20,11 +20,11 @@ __export(encryption_field_exports, {
|
|
|
20
20
|
EncryptionField: () => EncryptionField
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(encryption_field_exports);
|
|
23
|
-
var
|
|
23
|
+
var import_server = require("@tego/server");
|
|
24
24
|
var import_utils = require("./utils");
|
|
25
|
-
class EncryptionField extends
|
|
25
|
+
class EncryptionField extends import_server.Field {
|
|
26
26
|
get dataType() {
|
|
27
|
-
return
|
|
27
|
+
return import_server.DataTypes.STRING;
|
|
28
28
|
}
|
|
29
29
|
constructor(options, context) {
|
|
30
30
|
const { name, iv } = options;
|
package/dist/server/plugin.d.ts
CHANGED
package/dist/server/plugin.js
CHANGED
|
@@ -21,7 +21,7 @@ __export(plugin_exports, {
|
|
|
21
21
|
default: () => plugin_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(plugin_exports);
|
|
24
|
-
var import_server = require("@
|
|
24
|
+
var import_server = require("@tego/server");
|
|
25
25
|
var import_encryption_field = require("./encryption-field");
|
|
26
26
|
var import_eq = require("./operators/eq");
|
|
27
27
|
var import_ne = require("./operators/ne");
|
package/package.json
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-field-encryption",
|
|
3
3
|
"displayName": "Collection field: Encryption",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.23",
|
|
5
5
|
"description": "Encryption field",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Collection fields"
|
|
8
8
|
],
|
|
9
9
|
"main": "dist/server/index.js",
|
|
10
10
|
"dependencies": {},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"@tachybase/
|
|
16
|
-
"@tachybase/database": "1.3.21",
|
|
17
|
-
"@tachybase/client": "1.3.21"
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@tachybase/test": "^1.3.43",
|
|
13
|
+
"@tego/client": "^1.3.43",
|
|
14
|
+
"@tego/server": "^1.3.43",
|
|
15
|
+
"@tachybase/client": "1.3.23"
|
|
18
16
|
},
|
|
19
17
|
"description.zh-CN": "加密字段",
|
|
20
18
|
"displayName.zh-CN": "数据表字段:加密字段",
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "tachybase-build --no-dts @tachybase/plugin-field-encryption"
|
|
23
|
-
}
|
|
19
|
+
"scripts": {}
|
|
24
20
|
}
|