Comparing version 2.0.2 to 2.1.0
{ | ||
"name": "rox-node", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "Rollout.io ROX JS SDK Node", | ||
@@ -32,4 +32,4 @@ "author": "Rollout.io <support@rollout.io>", | ||
"debug": "node --inspect-brk=5859 demo/index.js", | ||
"test": "BABEL_ENV=test jest --no-watchman ./src/**", | ||
"test:watch": "BABEL_ENV=test jest ./src/** --watch", | ||
"test": "BABEL_ENV=test jest --no-watchman --testPathPattern ./src/**", | ||
"test:watch": "BABEL_ENV=test jest --testPathPattern ./src/** --watch", | ||
"prebuild": "npm run clean:dist", | ||
@@ -46,3 +46,3 @@ "build": "NODE_ENV=production rollup --config=./rollup.config.js", | ||
"dependencies": { | ||
"rox-base": "^2.0.2" | ||
"rox-base": "^2.1.0" | ||
}, | ||
@@ -55,3 +55,3 @@ "devDependencies": { | ||
"eslint": "^4.3.0", | ||
"jest": "^21.2.1", | ||
"jest": "^22.1.2", | ||
"nodemon": "^1.11.0", | ||
@@ -67,12 +67,6 @@ "rollup": "^0.50.0", | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js" | ||
], | ||
"moduleDirectories": [ | ||
"node_modules" | ||
], | ||
"transformIgnorePatterns": [ | ||
"/node_modules/(?!rox-base).+\\.js$" | ||
] | ||
"moduleFileExtensions": ["js"], | ||
"moduleDirectories": ["node_modules"], | ||
"transformIgnorePatterns": ["/node_modules/(?!rox-base).+\\.js$"] | ||
} | ||
} |
@@ -5,5 +5,6 @@ export const defaultSetupOptions = { | ||
configurationFetchedHandler: function() {}, | ||
flagImpressionHandler: null, | ||
impressionHandler: null, | ||
fetchIntervalInSec: 60, | ||
devModeSecret: null | ||
devModeSecret: null, | ||
platform: 'NodeJS' | ||
}; |
@@ -10,3 +10,3 @@ import RoxBase from 'rox-base'; | ||
getProperties() { | ||
const { distinct_id, app_release } = this; | ||
const { distinct_id, app_release, platform } = this; | ||
return { | ||
@@ -20,3 +20,3 @@ app_release, | ||
rollout_build: '100', | ||
platform: 'NodeJS', | ||
platform, | ||
customSigningCertificate: '5659eb0ca47811395ef85f0b09be63b7', | ||
@@ -23,0 +23,0 @@ rollout_disabled_initial_state: '0', |
@@ -22,11 +22,11 @@ import RoxBase from 'rox-base'; | ||
setStringCustomProperty(key, value) { | ||
setCustomStringProperty(key, value) { | ||
client.setCustomProperty(key, String, value); | ||
} | ||
setNumberCustomProperty(key, value) { | ||
setCustomNumberProperty(key, value) { | ||
client.setCustomProperty(key, Number, value); | ||
} | ||
setBooleanCustomProperty(key, value) { | ||
setCustomBooleanProperty(key, value) { | ||
client.setCustomProperty(key, Boolean, value); | ||
@@ -33,0 +33,0 @@ } |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
240217
6904
21401
Updatedrox-base@^2.1.0