@edirect/tokenization 0.0.3 → 0.0.4
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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var TokenizationApp = class {
|
|
|
114
114
|
async tokenize(auth, tenant, configKey, payload) {
|
|
115
115
|
const config = await this.configurationService.get(auth, tenant, configKey);
|
|
116
116
|
if (!config) return payload;
|
|
117
|
-
if ((!config.fields || config.fields.length === 0) && config.defaultClassification
|
|
117
|
+
if ((!config.fields || config.fields.length === 0) && config.defaultClassification === 0)
|
|
118
118
|
return payload;
|
|
119
119
|
const processedPayload = await this.processRequest(config, payload);
|
|
120
120
|
const tokenPayload = await this.tokenizationService.tokenize(
|
|
@@ -132,7 +132,7 @@ var TokenizationApp = class {
|
|
|
132
132
|
async detokenize(auth, tenant, configKey, payload) {
|
|
133
133
|
const config = await this.configurationService.get(auth, tenant, configKey);
|
|
134
134
|
if (!config) return payload;
|
|
135
|
-
if ((!config.fields || config.fields.length === 0) && config.defaultClassification
|
|
135
|
+
if ((!config.fields || config.fields.length === 0) && config.defaultClassification === 0)
|
|
136
136
|
return payload;
|
|
137
137
|
const processedPayload = this.processRequest(config, payload);
|
|
138
138
|
const tokenPayload = await this.tokenizationService.detokenize(
|
package/dist/index.mjs
CHANGED
|
@@ -88,7 +88,7 @@ var TokenizationApp = class {
|
|
|
88
88
|
async tokenize(auth, tenant, configKey, payload) {
|
|
89
89
|
const config = await this.configurationService.get(auth, tenant, configKey);
|
|
90
90
|
if (!config) return payload;
|
|
91
|
-
if ((!config.fields || config.fields.length === 0) && config.defaultClassification
|
|
91
|
+
if ((!config.fields || config.fields.length === 0) && config.defaultClassification === 0)
|
|
92
92
|
return payload;
|
|
93
93
|
const processedPayload = await this.processRequest(config, payload);
|
|
94
94
|
const tokenPayload = await this.tokenizationService.tokenize(
|
|
@@ -106,7 +106,7 @@ var TokenizationApp = class {
|
|
|
106
106
|
async detokenize(auth, tenant, configKey, payload) {
|
|
107
107
|
const config = await this.configurationService.get(auth, tenant, configKey);
|
|
108
108
|
if (!config) return payload;
|
|
109
|
-
if ((!config.fields || config.fields.length === 0) && config.defaultClassification
|
|
109
|
+
if ((!config.fields || config.fields.length === 0) && config.defaultClassification === 0)
|
|
110
110
|
return payload;
|
|
111
111
|
const processedPayload = this.processRequest(config, payload);
|
|
112
112
|
const tokenPayload = await this.tokenizationService.detokenize(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edirect/tokenization",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Javascript library for tokenization service",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "https://bitbucket.org/gofrank/tokenization-service-
|
|
26
|
+
"url": "git+https://bitbucket.org/gofrank/tokenization-service-nodejs.git"
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://bolttech.io",
|
|
29
29
|
"devDependencies": {
|