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

rox-base

Package Overview
Dependencies
Maintainers
6
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rox-base - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

12

package.json
{
"name": "rox-base",
"version": "1.2.2",
"version": "1.2.3",
"description": "Rollout.io ROX JS SDK Base",

@@ -55,3 +55,3 @@ "author": "Rollout.io <support@rollout.io>",

"eslint": "^4.3.0",
"jest": "^20.0.4",
"jest": "^21.2.1",
"uglifyjs-webpack-plugin": "1.0.0-beta.2",

@@ -61,9 +61,5 @@ "webpack": "^3.5.5"

"jest": {
"moduleFileExtensions": [
"js"
],
"moduleDirectories": [
"node_modules"
]
"moduleFileExtensions": ["js"],
"moduleDirectories": ["node_modules"]
}
}

@@ -16,10 +16,7 @@ import { hasOverride, getOverride } from '../lib/Overrider';

const optionsError = new Error(
`RoxVariant options must be a non-empty array of strings. Received '${this
._options}'`
`RoxVariant options must be a non-empty array of strings. Received '${this._options}'`
);
if (typeof defaultValue !== 'string') {
throw new Error(
`RoxVariant default value must be string. Recieved '${defaultValue}'`
);
throw new Error(`RoxVariant default value must be string. Recieved '${defaultValue}'`);
}

@@ -26,0 +23,0 @@

@@ -16,2 +16,2 @@ import * as Setters from './setters';

Context
})
});

@@ -5,9 +5,9 @@ import RoxConfigurationRepository from '../repositories/RoxConfigurationRepository';

export default class RoxRuntimeRegistry {
get customProperties () {
get customProperties() {
let cp = [];
for (let customProperties of RoxCustomRepository.items) {
cp.push({
'name': customProperties.name,
'type': customProperties.type,
'externalType': customProperties.externalType
name: customProperties.name,
type: customProperties.type,
externalType: customProperties.externalType
});

@@ -18,9 +18,9 @@ }

get featureFlags () {
get featureFlags() {
let featureFlags = [];
for (let flag of RoxFlagRepository.items) {
featureFlags.push({
'name': flag.name,
'defaultValue': flag.defaultValue,
'options': flag._options
name: flag.name,
defaultValue: flag.defaultValue,
options: flag._options
});

@@ -32,10 +32,10 @@ }

get remoteConfiguration () {
get remoteConfiguration() {
let remoteConfigurations = [];
for (let remoteConfiguration of RoxConfigurationRepository.items) {
remoteConfigurations.push({
'name': remoteConfiguration.name,
'defaultValue': remoteConfiguration.defaultValue,
'type': remoteConfiguration.type,
'externalType': remoteConfiguration.externalType
name: remoteConfiguration.name,
defaultValue: remoteConfiguration.defaultValue,
type: remoteConfiguration.type,
externalType: remoteConfiguration.externalType
});

@@ -42,0 +42,0 @@ }

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

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