connect-sdk-nodejs 4.2.1 → 4.3.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/lib/index.js +8 -1
- package/lib/index.js.map +1 -1
- package/lib/model/index.d.ts +2 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/types.d.ts +22 -0
- package/lib/utils/headers.js +1 -1
- package/lib/utils/obfuscate.d.ts +17 -1
- package/lib/utils/obfuscate.js +83 -57
- package/lib/utils/obfuscate.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const sdkcontext = require("./utils/context");
|
|
3
|
+
const obfuscate = require("./utils/obfuscate");
|
|
3
4
|
const hostedcheckouts = require("./hostedcheckouts");
|
|
4
5
|
const hostedmandatemanagements = require("./hostedmandatemanagements");
|
|
5
6
|
const payments = require("./payments");
|
|
@@ -79,7 +80,13 @@ const connectSdk = {
|
|
|
79
80
|
sessions: sessions,
|
|
80
81
|
files: files,
|
|
81
82
|
context: sdkcontext,
|
|
82
|
-
webhooks: webhooks
|
|
83
|
+
webhooks: webhooks,
|
|
84
|
+
obfuscate: {
|
|
85
|
+
all: obfuscate.all,
|
|
86
|
+
allButLast: obfuscate.allButLast,
|
|
87
|
+
allButFirst: obfuscate.allButFirst,
|
|
88
|
+
withFixedLength: obfuscate.withFixedLength
|
|
89
|
+
}
|
|
83
90
|
};
|
|
84
91
|
module.exports = connectSdk;
|
|
85
92
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAMA,8CAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAMA,8CAA+C;AAC/C,+CAAgD;AAEhD,qDAAsD;AACtD,uEAAwE;A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
1
|
+
import { Context, ObfuscationRules, SdkContext } from "./types";
|
|
2
2
|
import { HostedcheckoutsClient } from "./hostedcheckouts";
|
|
3
3
|
import { HostedmandatemanagementsClient } from "./hostedmandatemanagements";
|
|
4
4
|
import { PaymentsClient } from "./payments";
|
|
@@ -34,5 +34,6 @@ export interface ConnectSdk {
|
|
|
34
34
|
readonly files: FilesClient;
|
|
35
35
|
readonly context: SdkContext;
|
|
36
36
|
readonly webhooks: WebhooksHelper;
|
|
37
|
+
readonly obfuscate: ObfuscationRules;
|
|
37
38
|
}
|
|
38
39
|
export * from "./types";
|
package/lib/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgDA,0CAAwB"}
|
package/lib/model/types.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export interface Context {
|
|
|
18
18
|
integrator: string;
|
|
19
19
|
shoppingCartExtension?: ShoppingCartExtension;
|
|
20
20
|
httpOptions?: https.RequestOptions;
|
|
21
|
+
obfuscationRules?: {
|
|
22
|
+
[key: string]: ObfuscationRule;
|
|
23
|
+
};
|
|
21
24
|
}
|
|
22
25
|
export interface FileMetaData {
|
|
23
26
|
contentType: string | null;
|
|
@@ -42,6 +45,25 @@ export interface MultipartFormDataObject {
|
|
|
42
45
|
export interface MultipartFormDataRequest extends SdkRequest {
|
|
43
46
|
body: MultipartFormDataObject;
|
|
44
47
|
}
|
|
48
|
+
export interface ObfuscationRules {
|
|
49
|
+
/**
|
|
50
|
+
* @returns An obfuscation rule that will replace all characters with *.
|
|
51
|
+
*/
|
|
52
|
+
all(): ObfuscationRule;
|
|
53
|
+
/**
|
|
54
|
+
* @returns An obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with *.
|
|
55
|
+
*/
|
|
56
|
+
allButLast(count: number): ObfuscationRule;
|
|
57
|
+
/**
|
|
58
|
+
* @returns An obfuscation rule that will keep a fixed number of characters at the start, then replaces all other characters with *.
|
|
59
|
+
*/
|
|
60
|
+
allButFirst(count: number): ObfuscationRule;
|
|
61
|
+
/**
|
|
62
|
+
* @returns An obfuscation rule that will replace values with a fixed length string containing only *.
|
|
63
|
+
*/
|
|
64
|
+
withFixedLength(count: number): ObfuscationRule;
|
|
65
|
+
}
|
|
66
|
+
export declare type ObfuscationRule = (value: string) => string;
|
|
45
67
|
export interface PaymentContext {
|
|
46
68
|
extraHeaders?: Header[];
|
|
47
69
|
idemPotence?: IdemPotence;
|
package/lib/utils/headers.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.date = date;
|
|
|
9
9
|
function serverMetaInfo(sdkContext) {
|
|
10
10
|
const info = {
|
|
11
11
|
sdkCreator: "Ingenico",
|
|
12
|
-
sdkIdentifier: "NodejsServerSDK/v4.
|
|
12
|
+
sdkIdentifier: "NodejsServerSDK/v4.3.0",
|
|
13
13
|
platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node
|
|
14
14
|
};
|
|
15
15
|
if (sdkContext.getIntegrator() !== null) {
|
package/lib/utils/obfuscate.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
import { SdkContext } from "../model";
|
|
1
|
+
import { ObfuscationRule, SdkContext } from "../model";
|
|
2
|
+
/**
|
|
3
|
+
* @returns An obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with *.
|
|
4
|
+
*/
|
|
5
|
+
export declare function allButLast(count: number): ObfuscationRule;
|
|
6
|
+
/**
|
|
7
|
+
* @returns An obfuscation rule that will replace all characters with *.
|
|
8
|
+
*/
|
|
9
|
+
export declare function all(): ObfuscationRule;
|
|
10
|
+
/**
|
|
11
|
+
* @returns An obfuscation rule that will keep a fixed number of characters at the start, then replaces all other characters with *.
|
|
12
|
+
*/
|
|
13
|
+
export declare function allButFirst(count: number): ObfuscationRule;
|
|
14
|
+
/**
|
|
15
|
+
* @returns An obfuscation rule that will replace values with a fixed length string containing only *.
|
|
16
|
+
*/
|
|
17
|
+
export declare function withFixedLength(count: number): ObfuscationRule;
|
|
2
18
|
export declare function getObfuscated(input: any, context?: SdkContext | null, caseInsensitive?: boolean): string;
|
package/lib/utils/obfuscate.js
CHANGED
|
@@ -1,50 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getObfuscated = void 0;
|
|
3
|
+
exports.getObfuscated = exports.withFixedLength = exports.allButFirst = exports.all = exports.allButLast = void 0;
|
|
4
4
|
const traverse = require("traverse");
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
const sdkContext = require("./context");
|
|
7
7
|
const REPLACECHAR = "*";
|
|
8
8
|
const INDENT = 2;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const ALL = value => {
|
|
10
|
+
const l = value.length;
|
|
11
|
+
return _.padStart("", l, REPLACECHAR);
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @returns An obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with *.
|
|
15
|
+
*/
|
|
16
|
+
function allButLast(count) {
|
|
17
|
+
const rule = value => {
|
|
18
|
+
const l = value.length;
|
|
19
|
+
const end = value.substring(l - count);
|
|
20
|
+
return _.padStart(end, l, REPLACECHAR);
|
|
21
|
+
};
|
|
22
|
+
return rule;
|
|
11
23
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.update(_.padStart(end, l, REPLACECHAR));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return json;
|
|
24
|
+
exports.allButLast = allButLast;
|
|
25
|
+
/**
|
|
26
|
+
* @returns An obfuscation rule that will replace all characters with *.
|
|
27
|
+
*/
|
|
28
|
+
function all() {
|
|
29
|
+
return ALL;
|
|
22
30
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
exports.all = all;
|
|
32
|
+
/**
|
|
33
|
+
* @returns An obfuscation rule that will keep a fixed number of characters at the start, then replaces all other characters with *.
|
|
34
|
+
*/
|
|
35
|
+
function allButFirst(count) {
|
|
36
|
+
const rule = value => {
|
|
37
|
+
const l = value.length;
|
|
38
|
+
const start = value.substring(0, count);
|
|
39
|
+
return _.padEnd(start, l, REPLACECHAR);
|
|
40
|
+
};
|
|
41
|
+
return rule;
|
|
32
42
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
return
|
|
43
|
+
exports.allButFirst = allButFirst;
|
|
44
|
+
/**
|
|
45
|
+
* @returns An obfuscation rule that will replace values with a fixed length string containing only *.
|
|
46
|
+
*/
|
|
47
|
+
function withFixedLength(count) {
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
49
|
+
const rule = _value => {
|
|
50
|
+
return _.padEnd("", count, REPLACECHAR);
|
|
51
|
+
};
|
|
52
|
+
return rule;
|
|
43
53
|
}
|
|
44
|
-
|
|
54
|
+
exports.withFixedLength = withFixedLength;
|
|
55
|
+
function obfuscationRuleKey(name, toLowerCase) {
|
|
56
|
+
return toLowerCase ? name.toLowerCase() : name;
|
|
57
|
+
}
|
|
58
|
+
function applyObfuscationRules(json, obfuscationRules, toLowerCase) {
|
|
45
59
|
traverse(json).forEach(function (node) {
|
|
46
|
-
if (this.key &&
|
|
47
|
-
this.
|
|
60
|
+
if (this.key && typeof node !== "object") {
|
|
61
|
+
const obfuscationRule = obfuscationRules[obfuscationRuleKey(this.key, toLowerCase)];
|
|
62
|
+
if (obfuscationRule) {
|
|
63
|
+
const value = "" + node; // make sure it's a string
|
|
64
|
+
this.update(obfuscationRule(value));
|
|
65
|
+
}
|
|
48
66
|
}
|
|
49
67
|
});
|
|
50
68
|
return json;
|
|
@@ -69,33 +87,41 @@ function getObfuscated(input, context, caseInsensitive = false) {
|
|
|
69
87
|
return input;
|
|
70
88
|
}
|
|
71
89
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
const obfuscationRules = {};
|
|
91
|
+
obfuscationRules[obfuscationRuleKey("cardNumber", caseInsensitive)] = allButLast(4);
|
|
92
|
+
obfuscationRules[obfuscationRuleKey("expiryDate", caseInsensitive)] = allButLast(2);
|
|
93
|
+
obfuscationRules[obfuscationRuleKey("cvv", caseInsensitive)] = all();
|
|
94
|
+
obfuscationRules[obfuscationRuleKey("iban", caseInsensitive)] = allButLast(4);
|
|
95
|
+
obfuscationRules[obfuscationRuleKey("accountNumber", caseInsensitive)] = allButLast(4);
|
|
96
|
+
obfuscationRules[obfuscationRuleKey("reformattedAccountNumber", caseInsensitive)] = allButLast(4);
|
|
97
|
+
obfuscationRules[obfuscationRuleKey("bin", caseInsensitive)] = allButFirst(6);
|
|
80
98
|
// key-value pairs can contain any value, like credit card numbers or other private data; mask all values
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
99
|
+
obfuscationRules[obfuscationRuleKey("value", caseInsensitive)] = all();
|
|
100
|
+
obfuscationRules[obfuscationRuleKey("keyId", caseInsensitive)] = withFixedLength(8);
|
|
101
|
+
obfuscationRules[obfuscationRuleKey("secretKey", caseInsensitive)] = withFixedLength(8);
|
|
102
|
+
obfuscationRules[obfuscationRuleKey("publicKey", caseInsensitive)] = withFixedLength(8);
|
|
103
|
+
obfuscationRules[obfuscationRuleKey("userAuthenticationToken", caseInsensitive)] = withFixedLength(8);
|
|
86
104
|
// encrypted payload is a base64 string that contains an encrypted value; to make decrypting even harder, just mask the entire thing
|
|
87
|
-
|
|
105
|
+
obfuscationRules[obfuscationRuleKey("encryptedPayload", caseInsensitive)] = withFixedLength(8);
|
|
88
106
|
// decrypted payload is a simple base64 string that may contain credit card numbers or other private data; just mask the entire thing
|
|
89
|
-
|
|
107
|
+
obfuscationRules[obfuscationRuleKey("decryptedPayload", caseInsensitive)] = withFixedLength(8);
|
|
90
108
|
// encrypted customer input is similar to encrypted payload
|
|
91
|
-
|
|
109
|
+
obfuscationRules[obfuscationRuleKey("encryptedCustomerInput", caseInsensitive)] = withFixedLength(8);
|
|
92
110
|
// headers
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
111
|
+
obfuscationRules[obfuscationRuleKey("Authorization", caseInsensitive)] = withFixedLength(8);
|
|
112
|
+
obfuscationRules[obfuscationRuleKey("WWW-Authenticate", caseInsensitive)] = withFixedLength(8);
|
|
113
|
+
obfuscationRules[obfuscationRuleKey("Proxy-Authenticate", caseInsensitive)] = withFixedLength(8);
|
|
114
|
+
obfuscationRules[obfuscationRuleKey("Proxy-Authorization", caseInsensitive)] = withFixedLength(8);
|
|
115
|
+
obfuscationRules[obfuscationRuleKey("X-GCS-Authentication-Token", caseInsensitive)] = withFixedLength(8);
|
|
116
|
+
obfuscationRules[obfuscationRuleKey("X-GCS-CallerPassword", caseInsensitive)] = withFixedLength(8);
|
|
117
|
+
const customObfuscationRules = context.getContext().obfuscationRules;
|
|
118
|
+
if (customObfuscationRules) {
|
|
119
|
+
for (const key in customObfuscationRules) {
|
|
120
|
+
obfuscationRules[obfuscationRuleKey(key, caseInsensitive)] = customObfuscationRules[key];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
let obfuscated = JSON.parse(JSON.stringify(input));
|
|
124
|
+
obfuscated = applyObfuscationRules(obfuscated, obfuscationRules, caseInsensitive);
|
|
99
125
|
return JSON.stringify(obfuscated, null, INDENT);
|
|
100
126
|
}
|
|
101
127
|
exports.getObfuscated = getObfuscated;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"obfuscate.js","sourceRoot":"","sources":["../../src/utils/obfuscate.ts"],"names":[],"mappings":";;;AAAA,qCAAsC;AACtC,4BAA6B;AAE7B,wCAAyC;AAEzC,MAAM,WAAW,GAAG,GAAG,CAAC;AACxB,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB,
|
|
1
|
+
{"version":3,"file":"obfuscate.js","sourceRoot":"","sources":["../../src/utils/obfuscate.ts"],"names":[],"mappings":";;;AAAA,qCAAsC;AACtC,4BAA6B;AAE7B,wCAAyC;AAEzC,MAAM,WAAW,GAAG,GAAG,CAAC;AACxB,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB,MAAM,GAAG,GAAoB,KAAK,CAAC,EAAE;IACnC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IACvB,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF;;GAEG;AACH,SAAgB,UAAU,CAAC,KAAa;IACtC,MAAM,IAAI,GAAoB,KAAK,CAAC,EAAE;QACpC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;QACvB,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;QACvC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC;IACzC,CAAC,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAPD,gCAOC;AAED;;GAEG;AACH,SAAgB,GAAG;IACjB,OAAO,GAAG,CAAC;AACb,CAAC;AAFD,kBAEC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAa;IACvC,MAAM,IAAI,GAAoB,KAAK,CAAC,EAAE;QACpC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;QACvB,MAAM,KAAK,GAAG,K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AgB,CAAC,kBAAkB,CAAC,4BAA4B,EAAE,eAAe,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;IACzG,gBAAgB,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;IAEnG,MAAM,sBAAsB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,gBAAgB,CAAC;IACrE,IAAI,sBAAsB,EAAE;QAC1B,KAAK,MAAM,GAAG,IAAI,sBAAsB,EAAE;YACxC,gBAAgB,CAAC,kBAAkB,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC;SAC1F;KACF;IAED,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACnD,UAAU,GAAG,qBAAqB,CAAC,UAAU,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;IAElF,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC;AA1DD,sCA0DC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connect-sdk-nodejs",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
|
|
5
5
|
"homepage": "https://github.com/Ingenico-ePayments/connect-sdk-nodejs#readme",
|
|
6
6
|
"bugs": {
|