From 1f25b5e89a8e5314972db540bd5e271c593c885d Mon Sep 17 00:00:00 2001 From: Marcos Passos Date: Tue, 7 May 2024 07:41:23 -0600 Subject: [PATCH] Bump SDK (#279) --- jest.config.js | 1 + jest.setup.js | 4 ++++ package-lock.json | 14 ++++---------- package.json | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 jest.setup.js diff --git a/jest.config.js b/jest.config.js index 29c52dcd..2dfd2c5d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,4 +3,5 @@ module.exports = { testEnvironment: 'jsdom', preset: 'ts-jest', testMatch: ['/test/**/*.test.ts'], + setupFilesAfterEnv: ['/jest.setup.js'], }; diff --git a/jest.setup.js b/jest.setup.js new file mode 100644 index 00000000..c168cb7f --- /dev/null +++ b/jest.setup.js @@ -0,0 +1,4 @@ +const {TextEncoder, TextDecoder} = require('util'); + +global.TextEncoder = TextEncoder; +global.TextDecoder = TextDecoder; diff --git a/package-lock.json b/package-lock.json index 31cabede..c68e5be4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@croct/json": "^2.0.1", - "@croct/sdk": "^0.15.2", + "@croct/sdk": "^0.16.0", "tslib": "^2.2.0" }, "devDependencies": { @@ -929,12 +929,11 @@ "integrity": "sha512-UrWfjNQVlBxN+OVcFwHmkjARMW55MBN04E9KfGac8ac8z1QnFVuiOOFtMWXCk3UwsyRqhsNaFoYLZC+xxqsVjQ==" }, "node_modules/@croct/sdk": { - "version": "0.15.4", - "resolved": "https://registry.npmjs.org/@croct/sdk/-/sdk-0.15.4.tgz", - "integrity": "sha512-O+6NH1PeMq86E6ZgHHAuuIwQi1QNfk3sk5biithG+XF5sXcN+6WhA1QavzShYMyHoyV0uwL3uGCJWIiuGfwyOQ==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@croct/sdk/-/sdk-0.16.0.tgz", + "integrity": "sha512-mi2qzp08LtPD5giJIrUDCEFU3Ee3AL9BFCGfdszgO8k8TBmeitQUVnqsOZXPA8nG32jtt+WaZmFTp7Ewo1BTww==", "dependencies": { "@croct/json": "^2.0.1", - "js-base64": "^3.7.7", "tslib": "^2.5.0" }, "engines": { @@ -6248,11 +6247,6 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/js-base64": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.7.tgz", - "integrity": "sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw==" - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", diff --git a/package.json b/package.json index e3667451..cf65a554 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "@croct/json": "^2.0.1", - "@croct/sdk": "^0.15.2", + "@croct/sdk": "^0.16.0", "tslib": "^2.2.0" }, "devDependencies": {