Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eppo/js-client-sdk-common

Package Overview
Dependencies
Maintainers
8
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eppo/js-client-sdk-common - npm Package Compare versions

Comparing version 4.5.3 to 4.5.4

2

dist/application-logger.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc