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

unleash-client

Package Overview
Dependencies
Maintainers
4
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unleash-client - npm Package Compare versions

Comparing version 3.2.8 to 3.2.9

11

CHANGELOG.md
# Changelog
## 3.2.9
- fix: clean up strategy tests
- fix: Missing context field should not crash constraints.
- fix: bump eslint-utils from 1.3.1 to 1.4.2 (#147)
- fix: Update cross-env to the latest version 🚀 (#145)
## 3.2.8
- fix: script for updating client version
## 3.2.7

@@ -4,0 +15,0 @@

2

lib/details.json

@@ -1,1 +0,1 @@

{ "name": "unleash-client-node", "version": "3.2.8", "sdkVersion": "unleash-client-node:3.2.8" }
{ "name": "unleash-client-node", "version": "3.2.9", "sdkVersion": "unleash-client-node:3.2.9" }
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function resolveContextValue(context, field) {
if (context[field]) {
return context[field];
}
else if (context.properties && context.properties[field]) {
return context.properties[field];
}
else {
return undefined;
}
}
var Strategy = /** @class */ (function () {

@@ -11,3 +22,3 @@ function Strategy(name, returnValue) {

var field = constraint.contextName;
var contextValue = context[field] ? context[field] : context.properties[field];
var contextValue = resolveContextValue(context, field);
var isIn = constraint.values.some(function (val) { return val.trim() === contextValue; });

@@ -14,0 +25,0 @@ return constraint.operator === Operator.IN ? isIn : !isIn;

@@ -25,2 +25,6 @@ import { RepositoryInterface } from './repository';

}
export interface StaticContext {
appName: string;
environment: string;
}
export declare class Unleash extends EventEmitter {

@@ -27,0 +31,0 @@ private repository;

{
"name": "unleash-client",
"version": "3.2.8",
"version": "3.2.9",
"description": "Unleash Client for Node",

@@ -47,3 +47,3 @@ "license": "Apache-2.0",

"@types/murmurhash3js": "^3.0.2",
"@types/nock": "^10.0.3",
"@types/nock": "^11.1.0",
"@types/node": "^12.0.2",

@@ -53,3 +53,3 @@ "@types/request": "^2.0.8",

"ava": "^2.2.0",
"cross-env": "^5.2.0",
"cross-env": "^6.0.0",
"coveralls": "^3.0.3",

@@ -62,3 +62,3 @@ "eslint": "^6.1.0",

"mkdirp": "^0.5.1",
"nock": "^10.0.6",
"nock": "^11.1.0",
"nyc": "^14.1.1",

@@ -65,0 +65,0 @@ "prettier": "^1.17.1",

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

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