@tachybase/plugin-field-encryption 1.3.21 → 1.3.22

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.
@@ -1 +1 @@
1
- (function(t,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("@tachybase/utils/client")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","@tachybase/utils/client"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,e(t["@tachybase/plugin-field-encryption"]={},t["@tachybase/client"],t["@tachybase/utils"]))})(this,function(t,e,i){"use strict";var h=Object.defineProperty;var r=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var d=(t,e,i)=>e in t?h(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,p=(t,e)=>{for(var i in e||(e={}))f.call(e,i)&&d(t,i,e[i]);if(r)for(var i of r(e))b.call(e,i)&&d(t,i,e[i]);return t};var y=(t,e,i)=>new Promise((o,a)=>{var u=s=>{try{n(i.next(s))}catch(c){a(c)}},l=s=>{try{n(i.throw(s))}catch(c){a(c)}},n=s=>s.done?o(s.value):Promise.resolve(s.value).then(u,l);n((i=i.apply(t,e)).next())});const o="@tachybase/plugin-field-encryption",a=n=>e.tval(n,{ns:o});class u extends e.CollectionFieldInterface{constructor(){super(...arguments),this.name="encryption",this.type="object",this.group="advanced",this.order=10,this.title=a("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 l extends e.Plugin{load(){return y(this,null,function*(){this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaces([u])})}}t.PluginFieldEncryptionClient=l,t.default=l,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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 r=s=>{try{n(i.next(s))}catch(c){l(c)}},a=s=>{try{n(i.throw(s))}catch(c){l(c)}},n=s=>s.done?o(s.value):Promise.resolve(s.value).then(r,a);n((i=i.apply(t,e)).next())});const o="@tachybase/plugin-field-encryption",l=n=>e.tval(n,{ns:o});class r extends e.CollectionFieldInterface{constructor(){super(...arguments),this.name="encryption",this.type="object",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([r])})}}t.PluginFieldEncryptionClient=a,t.default=a,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,6 +1,5 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.3.21",
3
- "@tachybase/utils": "1.3.21",
4
- "@tachybase/database": "1.3.21",
5
- "@tachybase/server": "1.3.21"
2
+ "@tachybase/client": "1.3.22",
3
+ "@tego/client": "1.3.39",
4
+ "@tego/server": "1.3.39"
6
5
  };
@@ -1,4 +1,4 @@
1
- import { BaseColumnFieldOptions, DataTypes, Field, FieldContext } from '@tachybase/database';
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 import_database = require("@tachybase/database");
23
+ var import_server = require("@tego/server");
24
24
  var import_utils = require("./utils");
25
- class EncryptionField extends import_database.Field {
25
+ class EncryptionField extends import_server.Field {
26
26
  get dataType() {
27
- return import_database.DataTypes.STRING;
27
+ return import_server.DataTypes.STRING;
28
28
  }
29
29
  constructor(options, context) {
30
30
  const { name, iv } = options;
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginFieldEncryptionServer extends Plugin {
3
3
  beforeLoad(): Promise<void>;
4
4
  }
@@ -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("@tachybase/server");
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.21",
4
+ "version": "1.3.22",
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
- "peerDependencies": {
13
- "@tachybase/server": "1.3.21",
14
- "@tachybase/utils": "1.3.21",
15
- "@tachybase/test": "1.3.21",
16
- "@tachybase/database": "1.3.21",
17
- "@tachybase/client": "1.3.21"
11
+ "devDependencies": {
12
+ "@tachybase/test": "^1.3.39",
13
+ "@tego/client": "^1.3.39",
14
+ "@tego/server": "^1.3.39",
15
+ "@tachybase/client": "1.3.22"
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
  }