@pixelpay/sdk-core 2.0.6 → 2.1.0-beta.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/CHANGELOG.md +4 -0
- package/lib/base/Helpers.d.ts +16 -0
- package/lib/base/Helpers.js +39 -6
- package/lib/base/Helpers.js.map +1 -1
- package/lib/base/RequestBehaviour.d.ts +7 -0
- package/lib/base/RequestBehaviour.js +10 -1
- package/lib/base/RequestBehaviour.js.map +1 -1
- package/lib/base/ServiceBehaviour.d.ts +10 -0
- package/lib/base/ServiceBehaviour.js +88 -34
- package/lib/base/ServiceBehaviour.js.map +1 -1
- package/lib/browser/index.js +3 -3
- package/lib/libraries/CardinalManager.js +1 -1
- package/lib/models/Settings.d.ts +4 -0
- package/lib/models/Settings.js +8 -4
- package/lib/models/Settings.js.map +1 -1
- package/lib/requests/CardTokenization.d.ts +9 -2
- package/lib/requests/CardTokenization.js +28 -0
- package/lib/requests/CardTokenization.js.map +1 -1
- package/lib/requests/PaymentTransaction.d.ts +12 -5
- package/lib/requests/PaymentTransaction.js +25 -0
- package/lib/requests/PaymentTransaction.js.map +1 -1
- package/lib/services/Tokenization.js +1 -1
- package/lib/services/Transaction.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +4 -2
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
package/lib/models/Settings.d.ts
CHANGED
package/lib/models/Settings.js
CHANGED
|
@@ -31,7 +31,11 @@ var Settings = /** @class */ (function () {
|
|
|
31
31
|
* Settings response messages language
|
|
32
32
|
*/
|
|
33
33
|
this.lang = undefined;
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Public encryption key
|
|
36
|
+
*/
|
|
37
|
+
this.public_key = undefined;
|
|
38
|
+
this.endpoint = 'https://pixelpay.app';
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Setup API endpoint URL
|
|
@@ -71,9 +75,9 @@ var Settings = /** @class */ (function () {
|
|
|
71
75
|
* Setup defaults to Sandbox credentials
|
|
72
76
|
*/
|
|
73
77
|
Settings.prototype.setupSandbox = function () {
|
|
74
|
-
this.endpoint =
|
|
75
|
-
this.auth_key =
|
|
76
|
-
this.auth_hash = Helpers_1.default.hash(
|
|
78
|
+
this.endpoint = 'https://pixel-pay.com';
|
|
79
|
+
this.auth_key = '1234567890';
|
|
80
|
+
this.auth_hash = Helpers_1.default.hash('MD5', '@s4ndb0x-abcd-1234-n1l4-p1x3l');
|
|
77
81
|
this.environment = Environment_1.default.SANDBOX;
|
|
78
82
|
};
|
|
79
83
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../src/models/Settings.ts"],"names":[],"mappings":";;AAAA,2CAAsC;AACtC,wDAAmD;AAEnD;
|
|
1
|
+
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../src/models/Settings.ts"],"names":[],"mappings":";;AAAA,2CAAsC;AACtC,wDAAmD;AAEnD;IAoCC;;OAEG;IACH;QAtCA;;WAEG;QACH,aAAQ,GAAW,SAAS,CAAC;QAE7B;;WAEG;QACH,cAAS,GAAW,SAAS,CAAC;QAE9B;;WAEG;QACH,cAAS,GAAW,SAAS,CAAC;QAE9B;;WAEG;QACH,aAAQ,GAAW,SAAS,CAAC;QAE7B;;WAEG;QACH,gBAAW,GAAW,SAAS,CAAC;QAEhC;;WAEG;QACH,SAAI,GAAW,SAAS,CAAC;QAEzB;;WAEG;QACH,eAAU,GAAW,SAAS,CAAC;QAM9B,IAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,gCAAa,GAAb,UAAc,QAAgB;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,mCAAgB,GAAhB,UAAiB,GAAW,EAAE,IAAY;QACzC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,oCAAiB,GAAjB,UAAkB,IAAY;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,mCAAgB,GAAhB,UAAiB,GAAW;QAC3B,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,+BAAY,GAAZ;QACC,IAAI,CAAC,QAAQ,GAAG,uBAAuB,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,iBAAO,CAAC,IAAI,CAAC,KAAK,EAAE,+BAA+B,CAAC,CAAC;QACtE,IAAI,CAAC,WAAW,GAAG,qBAAW,CAAC,OAAO,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,gCAAa,GAAb,UAAc,IAAY;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IACF,eAAC;AAAD,CAAC,AAnGD,IAmGC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import RequestBehaviour from '../base/RequestBehaviour';
|
|
2
|
-
import Card from
|
|
3
|
-
import Billing from
|
|
2
|
+
import Card from '../models/Card';
|
|
3
|
+
import Billing from '../models/Billing';
|
|
4
4
|
export default class CardTokenization extends RequestBehaviour {
|
|
5
5
|
/**
|
|
6
6
|
* Card number or PAN
|
|
@@ -62,4 +62,11 @@ export default class CardTokenization extends RequestBehaviour {
|
|
|
62
62
|
* @param billing
|
|
63
63
|
*/
|
|
64
64
|
setBilling(billing: Billing): void;
|
|
65
|
+
/**
|
|
66
|
+
* Encrypt fields with sensitive data.
|
|
67
|
+
*
|
|
68
|
+
* @param publicKey
|
|
69
|
+
* @return
|
|
70
|
+
*/
|
|
71
|
+
withEncryption(publicKey: string | null): string | null;
|
|
65
72
|
}
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tweetnacl_util_1 = require("tweetnacl-util");
|
|
18
19
|
var RequestBehaviour_1 = require("../base/RequestBehaviour");
|
|
19
20
|
var Helpers_1 = require("../base/Helpers");
|
|
20
21
|
var CardTokenization = /** @class */ (function (_super) {
|
|
@@ -96,6 +97,33 @@ var CardTokenization = /** @class */ (function (_super) {
|
|
|
96
97
|
this.zip = billing.zip;
|
|
97
98
|
this.phone = billing.phone;
|
|
98
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* Encrypt fields with sensitive data.
|
|
102
|
+
*
|
|
103
|
+
* @param publicKey
|
|
104
|
+
* @return
|
|
105
|
+
*/
|
|
106
|
+
CardTokenization.prototype.withEncryption = function (publicKey) {
|
|
107
|
+
if (!publicKey) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
var keyPair = Helpers_1.default.getKeyPair();
|
|
111
|
+
var number = Helpers_1.default.encrypt(this.number, publicKey, keyPair);
|
|
112
|
+
var cvv2 = Helpers_1.default.encrypt(this.cvv2, publicKey, keyPair);
|
|
113
|
+
var expire_month = Helpers_1.default.encrypt(this.expire_month, publicKey, keyPair);
|
|
114
|
+
var expire_year = Helpers_1.default.encrypt(this.expire_year, publicKey, keyPair);
|
|
115
|
+
if (this.number === number
|
|
116
|
+
&& this.cvv2 === cvv2
|
|
117
|
+
&& this.expire_month === expire_month
|
|
118
|
+
&& this.expire_year === expire_year) {
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
this.number = number;
|
|
122
|
+
this.cvv2 = cvv2;
|
|
123
|
+
this.expire_month = expire_month;
|
|
124
|
+
this.expire_year = expire_year;
|
|
125
|
+
return tweetnacl_util_1.default.encodeBase64(keyPair.publicKey);
|
|
126
|
+
};
|
|
99
127
|
return CardTokenization;
|
|
100
128
|
}(RequestBehaviour_1.default));
|
|
101
129
|
exports.default = CardTokenization;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTokenization.js","sourceRoot":"","sources":["../../src/requests/CardTokenization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAAwD;AACxD,2CAAsC;AAItC;IAA8C,oCAAgB;IAA9D;QAAA,
|
|
1
|
+
{"version":3,"file":"CardTokenization.js","sourceRoot":"","sources":["../../src/requests/CardTokenization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAsC;AACtC,6DAAwD;AACxD,2CAAsC;AAItC;IAA8C,oCAAgB;IAA9D;QAAA,qEAwHC;QAvHA;;WAEG;QACH,YAAM,GAAW,IAAI,CAAC;QAEtB;;WAEG;QACH,UAAI,GAAW,IAAI,CAAC;QAEpB;;WAEG;QACH,kBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,gBAAU,GAAW,IAAI,CAAC;QAE1B;;WAEG;QACH,aAAO,GAAW,IAAI,CAAC;QAEvB;;WAEG;QACH,aAAO,GAAW,IAAI,CAAC;QAEvB;;WAEG;QACH,WAAK,GAAW,IAAI,CAAC;QAErB;;WAEG;QACH,UAAI,GAAW,IAAI,CAAC;QAEpB;;WAEG;QACH,SAAG,GAAW,IAAI,CAAC;QAEnB;;WAEG;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,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAChE,IAAM,IAAI,GAAG,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC5D,IAAM,YAAY,GAAG,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAM,WAAW,GAAG,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1E,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;eACtB,IAAI,CAAC,IAAI,KAAK,IAAI;eAClB,IAAI,CAAC,YAAY,KAAK,YAAY;eAClC,IAAI,CAAC,WAAW,KAAK,WAAW,EAAE;YACrC,OAAO,IAAI,CAAC;SACZ;QAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,OAAO,wBAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IACF,uBAAC;AAAD,CAAC,AAxHD,CAA8C,0BAAgB,GAwH7D"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Item from
|
|
2
|
-
import Order from
|
|
3
|
-
import Card from
|
|
4
|
-
import Billing from
|
|
5
|
-
import RequestBehaviour from
|
|
1
|
+
import Item from '../models/Item';
|
|
2
|
+
import Order from '../models/Order';
|
|
3
|
+
import Card from '../models/Card';
|
|
4
|
+
import Billing from '../models/Billing';
|
|
5
|
+
import RequestBehaviour from '../base/RequestBehaviour';
|
|
6
6
|
export default class PaymentTransaction extends RequestBehaviour {
|
|
7
7
|
/**
|
|
8
8
|
* Payment UUID
|
|
@@ -136,4 +136,11 @@ export default class PaymentTransaction extends RequestBehaviour {
|
|
|
136
136
|
* Enable 3DS/EMV authentication request
|
|
137
137
|
*/
|
|
138
138
|
withAuthenticationRequest(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Encrypt fields with sensitive data.
|
|
141
|
+
*
|
|
142
|
+
* @param publicKey
|
|
143
|
+
* @return
|
|
144
|
+
*/
|
|
145
|
+
withEncryption(publicKey: string | null): string | null;
|
|
139
146
|
}
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tweetnacl_util_1 = require("tweetnacl-util");
|
|
18
19
|
var Helpers_1 = require("../base/Helpers");
|
|
19
20
|
var RequestBehaviour_1 = require("../base/RequestBehaviour");
|
|
20
21
|
var PaymentTransaction = /** @class */ (function (_super) {
|
|
@@ -184,6 +185,30 @@ var PaymentTransaction = /** @class */ (function (_super) {
|
|
|
184
185
|
PaymentTransaction.prototype.withAuthenticationRequest = function () {
|
|
185
186
|
this.authentication_request = true;
|
|
186
187
|
};
|
|
188
|
+
/**
|
|
189
|
+
* Encrypt fields with sensitive data.
|
|
190
|
+
*
|
|
191
|
+
* @param publicKey
|
|
192
|
+
* @return
|
|
193
|
+
*/
|
|
194
|
+
PaymentTransaction.prototype.withEncryption = function (publicKey) {
|
|
195
|
+
if (!publicKey) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
var keyPair = Helpers_1.default.getKeyPair();
|
|
199
|
+
var card_number = Helpers_1.default.encrypt(this.card_number, publicKey, keyPair);
|
|
200
|
+
var card_cvv = Helpers_1.default.encrypt(this.card_cvv, publicKey, keyPair);
|
|
201
|
+
var card_expire = Helpers_1.default.encrypt(this.card_expire, publicKey, keyPair);
|
|
202
|
+
if (this.card_number === card_number
|
|
203
|
+
&& this.card_cvv === card_cvv
|
|
204
|
+
&& this.card_expire === card_expire) {
|
|
205
|
+
return null;
|
|
206
|
+
}
|
|
207
|
+
this.card_number = card_number;
|
|
208
|
+
this.card_cvv = card_cvv;
|
|
209
|
+
this.card_expire = card_expire;
|
|
210
|
+
return tweetnacl_util_1.default.encodeBase64(keyPair.publicKey);
|
|
211
|
+
};
|
|
187
212
|
return PaymentTransaction;
|
|
188
213
|
}(RequestBehaviour_1.default));
|
|
189
214
|
exports.default = PaymentTransaction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentTransaction.js","sourceRoot":"","sources":["../../src/requests/PaymentTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PaymentTransaction.js","sourceRoot":"","sources":["../../src/requests/PaymentTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAsC;AAKtC,2CAAsC;AACtC,6DAAwD;AAExD;IAAgD,sCAAgB;IAAhE;QAAA,qEA8NC;QA7NA;;WAEG;QACH,kBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,gBAAU,GAAW,IAAI,CAAC;QAE1B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,cAAQ,GAAW,IAAI,CAAC;QAExB;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,qBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,qBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,mBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,kBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,mBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,mBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,oBAAc,GAAW,IAAI,CAAC;QAE9B;;WAEG;QACH,0BAAoB,GAAW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ED,IAAM,OAAO,GAAG,iBAAO,CAAC,UAAU,EAAE,CAAC;QAErC,IAAM,WAAW,GAAG,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC1E,IAAM,QAAQ,GAAG,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACpE,IAAM,WAAW,GAAG,iBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1E,IAAI,IAAI,CAAC,WAAW,KAAK,WAAW;eAChC,IAAI,CAAC,QAAQ,KAAK,QAAQ;eAC1B,IAAI,CAAC,WAAW,KAAK,WAAW,EAAE;YACrC,OAAO,IAAI,CAAC;SACZ;QAED,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,OAAO,wBAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IACF,yBAAC;AAAD,CAAC,AA9ND,CAAgD,0BAAgB,GA8N/D"}
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.0.
|
|
1
|
+
declare const _default: "2.1.0-beta.0";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelpay/sdk-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-beta.0",
|
|
4
4
|
"description": "PixelPay SDK toolkit",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": "lib/browser/index.js",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"license": "MTI",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"axios": "^0.21.4",
|
|
33
|
-
"crypto-js": "^4.1.1"
|
|
33
|
+
"crypto-js": "^4.1.1",
|
|
34
|
+
"tweetnacl": "^1.0.3",
|
|
35
|
+
"tweetnacl-util": "^0.15.1"
|
|
34
36
|
}
|
|
35
37
|
}
|