@eppo/js-client-sdk-common
Advanced tools
Comparing version 4.5.3 to 4.5.4
export declare const loggerPrefix = "[Eppo SDK]"; | ||
export declare const logger: import("pino").Logger<never>; | ||
export declare const logger: import("pino").Logger<never, boolean>; | ||
//# sourceMappingURL=application-logger.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const js_base64_1 = require("js-base64"); | ||
class SdkKeyDecoder { | ||
@@ -12,3 +13,3 @@ /** | ||
return null; | ||
const decodedPayload = Buffer.from(encodedPayload, 'base64url').toString('utf-8'); | ||
const decodedPayload = js_base64_1.Base64.decode(encodedPayload); | ||
const params = new URLSearchParams(decodedPayload); | ||
@@ -15,0 +16,0 @@ return params.get('eh'); |
{ | ||
"name": "@eppo/js-client-sdk-common", | ||
"version": "4.5.3", | ||
"version": "4.5.4", | ||
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)", | ||
@@ -75,3 +75,3 @@ "main": "dist/index.js", | ||
"js-base64": "^3.7.7", | ||
"pino": "^8.19.0", | ||
"pino": "^9.5.0", | ||
"semver": "^7.5.4", | ||
@@ -78,0 +78,0 @@ "spark-md5": "^3.0.2", |
@@ -15,2 +15,16 @@ # Common library for Eppo's JavasScript SDK | ||
## Troubleshooting | ||
* Jest encountered an unexpected token | ||
``` | ||
Details: | ||
/.../node_modules/@eppo/js-client-sdk-common/node_modules/uuid/dist/esm-browser/index.js:1 | ||
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export { default as v1 } from './v1.js'; | ||
^^^^^^ | ||
SyntaxError: Unexpected token 'export' | ||
``` | ||
Add the following line to your `jest.config.js` file: | ||
`transformIgnorePatterns: ['<rootDir>/node_modules/(?!(@eppo|uuid)/)'],` | ||
### Installing local package | ||
@@ -17,0 +31,0 @@ |
@@ -0,1 +1,3 @@ | ||
import { Base64 } from 'js-base64'; | ||
export default class SdkKeyDecoder { | ||
@@ -10,3 +12,3 @@ /** | ||
const decodedPayload = Buffer.from(encodedPayload, 'base64url').toString('utf-8'); | ||
const decodedPayload = Base64.decode(encodedPayload); | ||
const params = new URLSearchParams(decodedPayload); | ||
@@ -13,0 +15,0 @@ return params.get('eh'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1052877
9172
35
+ Addedpino@9.6.0(transitive)
+ Addedpino-abstract-transport@2.0.0(transitive)
+ Addedpino-std-serializers@7.0.0(transitive)
+ Addedprocess-warning@4.0.1(transitive)
+ Addedsonic-boom@4.2.0(transitive)
+ Addedthread-stream@3.1.0(transitive)
- Removedabort-controller@3.0.0(transitive)
- Removedbuffer@6.0.3(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedevents@3.3.0(transitive)
- Removedpino@8.21.0(transitive)
- Removedpino-abstract-transport@1.2.0(transitive)
- Removedpino-std-serializers@6.2.2(transitive)
- Removedprocess@0.11.10(transitive)
- Removedprocess-warning@3.0.0(transitive)
- Removedreadable-stream@4.6.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsonic-boom@3.8.1(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedthread-stream@2.7.0(transitive)
Updatedpino@^9.5.0