@blockchyp/blockchyp-ts 1.0.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/.eslintrc.json +20 -0
- package/LICENSE +21 -0
- package/README.md +4314 -0
- package/index.js +24 -0
- package/index.ts +3 -0
- package/itest/ActivateTerminalITestSpec.js +87 -0
- package/itest/ActivateTerminalITestSpec.ts +58 -0
- package/itest/AddTestMerchantITestSpec.js +89 -0
- package/itest/AddTestMerchantITestSpec.ts +60 -0
- package/itest/BatchHistoryITestSpec.js +101 -0
- package/itest/BatchHistoryITestSpec.ts +73 -0
- package/itest/BooleanPromptITestSpec.js +104 -0
- package/itest/BooleanPromptITestSpec.ts +76 -0
- package/itest/CancelPaymentLinkITestSpec.js +116 -0
- package/itest/CancelPaymentLinkITestSpec.ts +93 -0
- package/itest/CaptureSignatureITestSpec.js +101 -0
- package/itest/CaptureSignatureITestSpec.ts +73 -0
- package/itest/DeactivateTerminalITestSpec.js +82 -0
- package/itest/DeactivateTerminalITestSpec.ts +52 -0
- package/itest/DeleteBrandingAssetITestSpec.js +96 -0
- package/itest/DeleteBrandingAssetITestSpec.ts +69 -0
- package/itest/DeleteCustomerITestSpec.js +102 -0
- package/itest/DeleteCustomerITestSpec.ts +75 -0
- package/itest/DeleteMediaAssetITestSpec.js +100 -0
- package/itest/DeleteMediaAssetITestSpec.ts +71 -0
- package/itest/DeleteQueuedTransactionITestSpec.js +117 -0
- package/itest/DeleteQueuedTransactionITestSpec.ts +89 -0
- package/itest/DeleteSlideShowITestSpec.js +96 -0
- package/itest/DeleteSlideShowITestSpec.ts +69 -0
- package/itest/DeleteSurveyQuestionITestSpec.js +97 -0
- package/itest/DeleteSurveyQuestionITestSpec.ts +70 -0
- package/itest/DeleteTestMerchantITestSpec.js +96 -0
- package/itest/DeleteTestMerchantITestSpec.ts +69 -0
- package/itest/DeleteTokenITestSpec.js +102 -0
- package/itest/DeleteTokenITestSpec.ts +75 -0
- package/itest/EmptyBrandingAssetITestSpec.js +85 -0
- package/itest/EmptyBrandingAssetITestSpec.ts +57 -0
- package/itest/EmptySlideShowITestSpec.js +87 -0
- package/itest/EmptySlideShowITestSpec.ts +58 -0
- package/itest/GatewayTimeoutITestSpec.js +103 -0
- package/itest/GatewayTimeoutITestSpec.ts +73 -0
- package/itest/GetCustomerITestSpec.js +102 -0
- package/itest/GetCustomerITestSpec.ts +75 -0
- package/itest/GetMerchantsITestSpec.js +84 -0
- package/itest/GetMerchantsITestSpec.ts +56 -0
- package/itest/InviteMerchantUserITestSpec.js +86 -0
- package/itest/InviteMerchantUserITestSpec.ts +58 -0
- package/itest/LinkTokenITestSpec.js +103 -0
- package/itest/LinkTokenITestSpec.ts +76 -0
- package/itest/ListQueuedTransactionsITestSpec.js +116 -0
- package/itest/ListQueuedTransactionsITestSpec.ts +88 -0
- package/itest/ListTerminalsITestSpec.js +83 -0
- package/itest/ListTerminalsITestSpec.ts +56 -0
- package/itest/MediaAssetITestSpec.js +105 -0
- package/itest/MediaAssetITestSpec.ts +75 -0
- package/itest/MediaITestSpec.js +83 -0
- package/itest/MediaITestSpec.ts +56 -0
- package/itest/MediaUploadITestSpec.js +94 -0
- package/itest/MediaUploadITestSpec.ts +63 -0
- package/itest/MerchantCredentialGenerationITestSpec.js +85 -0
- package/itest/MerchantCredentialGenerationITestSpec.ts +57 -0
- package/itest/MerchantInvoiceDetailITestSpec.js +84 -0
- package/itest/MerchantInvoiceDetailITestSpec.ts +56 -0
- package/itest/MerchantInvoicesITestSpec.js +84 -0
- package/itest/MerchantInvoicesITestSpec.ts +56 -0
- package/itest/MerchantPlatformsITestSpec.js +96 -0
- package/itest/MerchantPlatformsITestSpec.ts +69 -0
- package/itest/MerchantProfileITestSpec.js +84 -0
- package/itest/MerchantProfileITestSpec.ts +56 -0
- package/itest/MerchantUsersITestSpec.js +83 -0
- package/itest/MerchantUsersITestSpec.ts +56 -0
- package/itest/NewTransactionDisplayITestSpec.js +115 -0
- package/itest/NewTransactionDisplayITestSpec.ts +92 -0
- package/itest/PANChargeITestSpec.js +118 -0
- package/itest/PANChargeITestSpec.ts +88 -0
- package/itest/PANEnrollITestSpec.js +118 -0
- package/itest/PANEnrollITestSpec.ts +90 -0
- package/itest/PANPreauthITestSpec.js +116 -0
- package/itest/PANPreauthITestSpec.ts +87 -0
- package/itest/PartialRefundITestSpec.js +119 -0
- package/itest/PartialRefundITestSpec.ts +91 -0
- package/itest/PartnerCommissionBreakdownITestSpec.js +84 -0
- package/itest/PartnerCommissionBreakdownITestSpec.ts +56 -0
- package/itest/PartnerStatementDetailITestSpec.js +84 -0
- package/itest/PartnerStatementDetailITestSpec.ts +56 -0
- package/itest/PartnerStatementsITestSpec.js +84 -0
- package/itest/PartnerStatementsITestSpec.ts +56 -0
- package/itest/PaymentLinkStatusITestSpec.js +116 -0
- package/itest/PaymentLinkStatusITestSpec.ts +93 -0
- package/itest/PricingPolicyITestSpec.js +85 -0
- package/itest/PricingPolicyITestSpec.ts +57 -0
- package/itest/ResendPaymentLinkITestSpec.js +116 -0
- package/itest/ResendPaymentLinkITestSpec.ts +93 -0
- package/itest/SearchCustomerITestSpec.js +101 -0
- package/itest/SearchCustomerITestSpec.ts +75 -0
- package/itest/SendPaymentLinkITestSpec.js +107 -0
- package/itest/SendPaymentLinkITestSpec.ts +82 -0
- package/itest/SimpleBatchCloseITestSpec.js +101 -0
- package/itest/SimpleBatchCloseITestSpec.ts +73 -0
- package/itest/SimpleCaptureITestSpec.js +101 -0
- package/itest/SimpleCaptureITestSpec.ts +74 -0
- package/itest/SimpleGiftActivateITestSpec.js +104 -0
- package/itest/SimpleGiftActivateITestSpec.ts +75 -0
- package/itest/SimpleLocateITestSpec.js +85 -0
- package/itest/SimpleLocateITestSpec.ts +57 -0
- package/itest/SimpleMessageITestSpec.js +101 -0
- package/itest/SimpleMessageITestSpec.ts +73 -0
- package/itest/SimplePingITestSpec.js +100 -0
- package/itest/SimplePingITestSpec.ts +72 -0
- package/itest/SimpleRefundITestSpec.js +118 -0
- package/itest/SimpleRefundITestSpec.ts +90 -0
- package/itest/SimpleReversalITestSpec.js +103 -0
- package/itest/SimpleReversalITestSpec.ts +75 -0
- package/itest/SimpleVoidITestSpec.js +103 -0
- package/itest/SimpleVoidITestSpec.ts +75 -0
- package/itest/SlideShowITestSpec.js +98 -0
- package/itest/SlideShowITestSpec.ts +70 -0
- package/itest/SlideShowsITestSpec.js +95 -0
- package/itest/SlideShowsITestSpec.ts +69 -0
- package/itest/SurveyQuestionITestSpec.js +95 -0
- package/itest/SurveyQuestionITestSpec.ts +68 -0
- package/itest/SurveyQuestionsITestSpec.js +96 -0
- package/itest/SurveyQuestionsITestSpec.ts +70 -0
- package/itest/SurveyResultsITestSpec.js +95 -0
- package/itest/SurveyResultsITestSpec.ts +68 -0
- package/itest/TCDeleteTemplateITestSpec.js +98 -0
- package/itest/TCDeleteTemplateITestSpec.ts +70 -0
- package/itest/TCEntryITestSpec.js +103 -0
- package/itest/TCEntryITestSpec.ts +76 -0
- package/itest/TCLogITestSpec.js +83 -0
- package/itest/TCLogITestSpec.ts +56 -0
- package/itest/TCTemplateITestSpec.js +101 -0
- package/itest/TCTemplateITestSpec.ts +72 -0
- package/itest/TCTemplateUpdateITestSpec.js +91 -0
- package/itest/TCTemplateUpdateITestSpec.ts +61 -0
- package/itest/TCTemplatesITestSpec.js +83 -0
- package/itest/TCTemplatesITestSpec.ts +56 -0
- package/itest/TerminalBrandingITestSpec.js +83 -0
- package/itest/TerminalBrandingITestSpec.ts +56 -0
- package/itest/TerminalChargeITestSpec.js +113 -0
- package/itest/TerminalChargeITestSpec.ts +84 -0
- package/itest/TerminalClearITestSpec.js +100 -0
- package/itest/TerminalClearITestSpec.ts +72 -0
- package/itest/TerminalEBTBalanceITestSpec.js +103 -0
- package/itest/TerminalEBTBalanceITestSpec.ts +74 -0
- package/itest/TerminalEBTChargeITestSpec.js +115 -0
- package/itest/TerminalEBTChargeITestSpec.ts +86 -0
- package/itest/TerminalEnrollITestSpec.js +112 -0
- package/itest/TerminalEnrollITestSpec.ts +83 -0
- package/itest/TerminalGiftCardBalanceITestSpec.js +102 -0
- package/itest/TerminalGiftCardBalanceITestSpec.ts +73 -0
- package/itest/TerminalKeyedChargeITestSpec.js +114 -0
- package/itest/TerminalKeyedChargeITestSpec.ts +85 -0
- package/itest/TerminalManualEBTChargeITestSpec.js +116 -0
- package/itest/TerminalManualEBTChargeITestSpec.ts +87 -0
- package/itest/TerminalPreauthITestSpec.js +113 -0
- package/itest/TerminalPreauthITestSpec.ts +84 -0
- package/itest/TerminalQueuedTransactionITestSpec.js +108 -0
- package/itest/TerminalQueuedTransactionITestSpec.ts +78 -0
- package/itest/TerminalStatusITestSpec.js +100 -0
- package/itest/TerminalStatusITestSpec.ts +72 -0
- package/itest/TerminalTimeoutITestSpec.js +99 -0
- package/itest/TerminalTimeoutITestSpec.ts +70 -0
- package/itest/TermsAndConditionsITestSpec.js +105 -0
- package/itest/TermsAndConditionsITestSpec.ts +77 -0
- package/itest/TextPromptITestSpec.js +103 -0
- package/itest/TextPromptITestSpec.ts +74 -0
- package/itest/TokenMetadataITestSpec.js +102 -0
- package/itest/TokenMetadataITestSpec.ts +75 -0
- package/itest/TransactionHistoryITestSpec.js +101 -0
- package/itest/TransactionHistoryITestSpec.ts +73 -0
- package/itest/UnlinkTokenITestSpec.js +103 -0
- package/itest/UnlinkTokenITestSpec.ts +76 -0
- package/itest/UpdateBrandingAssetITestSpec.js +109 -0
- package/itest/UpdateBrandingAssetITestSpec.ts +80 -0
- package/itest/UpdateCustomerITestSpec.js +90 -0
- package/itest/UpdateCustomerITestSpec.ts +63 -0
- package/itest/UpdateMerchantITestSpec.js +92 -0
- package/itest/UpdateMerchantITestSpec.ts +65 -0
- package/itest/UpdateMerchantPlatformsITestSpec.js +98 -0
- package/itest/UpdateMerchantPlatformsITestSpec.ts +71 -0
- package/itest/UpdateSlideShowITestSpec.js +106 -0
- package/itest/UpdateSlideShowITestSpec.ts +78 -0
- package/itest/UpdateSurveyQuestionITestSpec.js +89 -0
- package/itest/UpdateSurveyQuestionITestSpec.ts +60 -0
- package/itest/UpdateTransactionDisplayITestSpec.js +115 -0
- package/itest/UpdateTransactionDisplayITestSpec.ts +92 -0
- package/itest/UploadStatusITestSpec.js +100 -0
- package/itest/UploadStatusITestSpec.ts +71 -0
- package/itest/support/aviato.png +0 -0
- package/itest/support/config.js +67 -0
- package/itest/support/config.ts +106 -0
- package/itest/support/jasmine.json +11 -0
- package/package.json +73 -0
- package/spec/CryptoSpec.js +35 -0
- package/spec/CryptoSpec.ts +35 -0
- package/spec/SanitySpec.js +26 -0
- package/spec/SanitySpec.ts +23 -0
- package/spec/support/jasmine.json +11 -0
- package/src/client.js +941 -0
- package/src/client.ts +1012 -0
- package/src/cryptoutils.js +89 -0
- package/src/cryptoutils.ts +80 -0
- package/src/global.js +9 -0
- package/src/global.ts +5 -0
- package/src/models.js +9382 -0
- package/src/models.ts +16509 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.BlockChypCrypto = void 0;
|
|
27
|
+
const createHmac = require('create-hmac');
|
|
28
|
+
const randomBytes = require('randombytes');
|
|
29
|
+
const moment = require('moment');
|
|
30
|
+
const base32 = require('base32');
|
|
31
|
+
const shajs = require('sha.js');
|
|
32
|
+
const EC = __importStar(require("elliptic"));
|
|
33
|
+
const aesjs = __importStar(require("aes-js"));
|
|
34
|
+
class BlockChypCrypto {
|
|
35
|
+
generateGatewayHeaders(creds) {
|
|
36
|
+
const nonce = this.generateNonce();
|
|
37
|
+
const ts = this.generateIsoTimestamp();
|
|
38
|
+
const toSign = creds.apiKey + creds.bearerToken + ts + nonce;
|
|
39
|
+
const key = Buffer.from(creds.signingKey, 'hex');
|
|
40
|
+
const hmac = createHmac('sha256', key);
|
|
41
|
+
hmac.update(toSign);
|
|
42
|
+
const sig = hmac.digest('hex');
|
|
43
|
+
const results = {
|
|
44
|
+
'Nonce': nonce,
|
|
45
|
+
'Timestamp': ts,
|
|
46
|
+
'Authorization': 'Dual ' + creds.bearerToken + ':' + creds.apiKey + ':' + sig
|
|
47
|
+
};
|
|
48
|
+
return results;
|
|
49
|
+
}
|
|
50
|
+
encrypt(hexKey, plainText) {
|
|
51
|
+
const key = Buffer.from(hexKey, 'hex').slice(0, 32);
|
|
52
|
+
const keyArr = [...key];
|
|
53
|
+
const iv = randomBytes(16);
|
|
54
|
+
const ivArr = [...iv];
|
|
55
|
+
const aesCbc = new aesjs.ModeOfOperation.cbc(keyArr, ivArr);
|
|
56
|
+
const plainBytes = aesjs.padding.pkcs7.pad(aesjs.utils.utf8.toBytes(plainText));
|
|
57
|
+
const encryptedBytes = aesCbc.encrypt(plainBytes);
|
|
58
|
+
return iv.toString('hex') + aesjs.utils.hex.fromBytes(encryptedBytes);
|
|
59
|
+
}
|
|
60
|
+
sha256Hash(msg) {
|
|
61
|
+
return shajs('sha256').update(msg, 'hex').digest('hex');
|
|
62
|
+
}
|
|
63
|
+
validateSignature(publicKey, msg, sig) {
|
|
64
|
+
const ec = new EC.ec('p256');
|
|
65
|
+
const key = ec.keyFromPublic({ x: publicKey.x, y: publicKey.y });
|
|
66
|
+
const msgHash = this.sha256Hash(msg);
|
|
67
|
+
return key.verify(msgHash, { r: sig.r, s: sig.s });
|
|
68
|
+
}
|
|
69
|
+
decrypt(hexKey, cipherText) {
|
|
70
|
+
const key = Buffer.from(hexKey, 'hex').slice(0, 32);
|
|
71
|
+
const keyArr = [...key];
|
|
72
|
+
const cipherBytes = Buffer.from(cipherText, 'hex');
|
|
73
|
+
const iv = cipherBytes.slice(0, 16);
|
|
74
|
+
const aesCbc = new aesjs.ModeOfOperation.cbc(keyArr, iv);
|
|
75
|
+
const cipher = cipherBytes.slice(16, cipherBytes.length);
|
|
76
|
+
const cipherArr = [...cipher];
|
|
77
|
+
const decryptedBytes = aesjs.padding.pkcs7.strip(aesCbc.decrypt(cipherArr));
|
|
78
|
+
return aesjs.utils.utf8.fromBytes(decryptedBytes);
|
|
79
|
+
}
|
|
80
|
+
generateNonce() {
|
|
81
|
+
return base32.encode(randomBytes(32), "Crockford").toUpperCase();
|
|
82
|
+
}
|
|
83
|
+
generateIsoTimestamp() {
|
|
84
|
+
return moment().utc().format('YYYY-MM-DDTHH:mm:ss') + 'Z';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.BlockChypCrypto = BlockChypCrypto;
|
|
88
|
+
const CryptoUtils = new BlockChypCrypto();
|
|
89
|
+
exports.default = CryptoUtils;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const createHmac = require('create-hmac')
|
|
2
|
+
const randomBytes = require('randombytes')
|
|
3
|
+
const moment = require('moment')
|
|
4
|
+
const base32 = require('base32')
|
|
5
|
+
const shajs = require('sha.js')
|
|
6
|
+
import * as EC from 'elliptic'
|
|
7
|
+
import * as aesjs from 'aes-js'
|
|
8
|
+
import { BlockChypCredentials } from './client'
|
|
9
|
+
|
|
10
|
+
export class BlockChypCrypto {
|
|
11
|
+
generateGatewayHeaders (creds: BlockChypCredentials) {
|
|
12
|
+
const nonce = this.generateNonce()
|
|
13
|
+
const ts = this.generateIsoTimestamp()
|
|
14
|
+
const toSign = creds.apiKey + creds.bearerToken + ts + nonce
|
|
15
|
+
const key = Buffer.from(creds.signingKey, 'hex')
|
|
16
|
+
const hmac = createHmac('sha256', key)
|
|
17
|
+
hmac.update(toSign)
|
|
18
|
+
const sig = hmac.digest('hex')
|
|
19
|
+
|
|
20
|
+
const results = {
|
|
21
|
+
'Nonce': nonce,
|
|
22
|
+
'Timestamp': ts,
|
|
23
|
+
'Authorization': 'Dual ' + creds.bearerToken + ':' + creds.apiKey + ':' + sig
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return results
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
encrypt (hexKey: string, plainText: string) {
|
|
30
|
+
const key = Buffer.from(hexKey, 'hex').slice(0, 32)
|
|
31
|
+
const keyArr = [...key]
|
|
32
|
+
|
|
33
|
+
const iv = randomBytes(16)
|
|
34
|
+
const ivArr = [...iv]
|
|
35
|
+
|
|
36
|
+
const aesCbc = new aesjs.ModeOfOperation.cbc(keyArr, ivArr)
|
|
37
|
+
const plainBytes = aesjs.padding.pkcs7.pad(aesjs.utils.utf8.toBytes(plainText))
|
|
38
|
+
const encryptedBytes = aesCbc.encrypt(plainBytes)
|
|
39
|
+
|
|
40
|
+
return iv.toString('hex') + aesjs.utils.hex.fromBytes(encryptedBytes)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
sha256Hash (msg: string) {
|
|
44
|
+
return shajs('sha256').update(msg, 'hex').digest('hex')
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
validateSignature (publicKey: any, msg: string, sig: any) {
|
|
48
|
+
const ec = new EC.ec('p256')
|
|
49
|
+
const key = ec.keyFromPublic({x: publicKey.x, y: publicKey.y})
|
|
50
|
+
const msgHash = this.sha256Hash(msg)
|
|
51
|
+
return key.verify(msgHash, {r: sig.r, s: sig.s})
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
decrypt (hexKey: string, cipherText: string) {
|
|
55
|
+
const key = Buffer.from(hexKey, 'hex').slice(0, 32)
|
|
56
|
+
const keyArr = [...key]
|
|
57
|
+
|
|
58
|
+
const cipherBytes = Buffer.from(cipherText, 'hex')
|
|
59
|
+
const iv = cipherBytes.slice(0, 16)
|
|
60
|
+
|
|
61
|
+
const aesCbc = new aesjs.ModeOfOperation.cbc(keyArr, iv)
|
|
62
|
+
|
|
63
|
+
const cipher = cipherBytes.slice(16, cipherBytes.length)
|
|
64
|
+
const cipherArr = [...cipher]
|
|
65
|
+
const decryptedBytes = aesjs.padding.pkcs7.strip(aesCbc.decrypt(cipherArr))
|
|
66
|
+
|
|
67
|
+
return aesjs.utils.utf8.fromBytes(decryptedBytes)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
generateNonce () {
|
|
71
|
+
return base32.encode(randomBytes(32), "Crockford").toUpperCase()
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
generateIsoTimestamp () {
|
|
75
|
+
return moment().utc().format('YYYY-MM-DDTHH:mm:ss') + 'Z'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const CryptoUtils = new BlockChypCrypto()
|
|
80
|
+
export default CryptoUtils
|
package/src/global.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const client_1 = __importDefault(require("./client"));
|
|
7
|
+
if (typeof window !== 'undefined') {
|
|
8
|
+
window.blockchyp = client_1.default;
|
|
9
|
+
}
|