Comparing version 1.2.2 to 1.2.3
{ | ||
"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
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
1518231
54
10583