feature-toggle-service
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -10,2 +10,12 @@ # Change Log | ||
## [4.0.1][] - 2019-06-22 | ||
### Updated | ||
- Updated `package-lock.json` file | ||
### Added | ||
- Added method description for Editor/IDE integration | ||
## [4.0.0][] - 2018-10-07 | ||
@@ -29,3 +39,4 @@ | ||
[Unreleased]: https://github.com/willmendesneto/feature-toggle-service/compare/v4.0.0...HEAD | ||
[4.0.0]: https://github.com/willmendesneto/feature-toggle-service/tree/v4.0.0 | ||
[Unreleased]: https://github.com/willmendesneto/feature-toggle-service/compare/v4.0.1...HEAD | ||
[4.0.1]: https://github.com/willmendesneto/feature-toggle-service/compare/v4.0.0...v4.0.1 | ||
[4.0.0]: https://github.com/willmendesneto/feature-toggle-service/tree/v4.0.0 |
@@ -0,3 +1,21 @@ | ||
/** | ||
* Checks if Feature toggle/flag exists and it's on. | ||
* | ||
* @param key - Feature toggle/flag key to be checked | ||
* | ||
* @returns Boolean | ||
* | ||
*/ | ||
declare const isOn: (key: string) => boolean; | ||
declare const set: (obj: any) => void; | ||
/** | ||
* Set feature toggle/flag configuration | ||
* | ||
* @param obj - Configuration of your feature toggle/flag | ||
* | ||
* @returns void | ||
* | ||
*/ | ||
declare const set: (obj: { | ||
[k: string]: boolean; | ||
}) => void; | ||
export { isOn, set }; |
/*! | ||
* feature-toggle-service.js v4.0.0 | ||
* feature-toggle-service.js v4.0.1 | ||
* https://willmendesneto.github.io/feature-toggle-service.js | ||
@@ -8,26 +8,42 @@ * | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define("FeatureToggleService", ["exports"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports); | ||
} else { | ||
var mod = { | ||
exports: {} | ||
}; | ||
factory(mod.exports); | ||
global.FeatureToggleService = mod.exports; | ||
} | ||
if (typeof define === "function" && define.amd) { | ||
define("FeatureToggleService", ["exports"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports); | ||
} else { | ||
var mod = { | ||
exports: {} | ||
}; | ||
factory(mod.exports); | ||
global.FeatureToggleService = mod.exports; | ||
} | ||
})(this, function (exports) { | ||
"use strict"; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var settings = {}; | ||
var isOn = function isOn(key) { | ||
return !!settings[key]; | ||
}; | ||
exports.isOn = isOn; | ||
var set = function set(obj) { | ||
settings = obj; | ||
}; | ||
exports.set = set; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var settings = {}; | ||
/** | ||
* Checks if Feature toggle/flag exists and it's on. | ||
* | ||
* @param key - Feature toggle/flag key to be checked | ||
* | ||
* @returns Boolean | ||
* | ||
*/ | ||
var isOn = function isOn(key) { | ||
return !!settings[key]; | ||
}; | ||
exports.isOn = isOn; | ||
/** | ||
* Set feature toggle/flag configuration | ||
* | ||
* @param obj - Configuration of your feature toggle/flag | ||
* | ||
* @returns void | ||
* | ||
*/ | ||
var set = function set(obj) { | ||
settings = obj; | ||
}; | ||
exports.set = set; | ||
}); |
/*! | ||
* feature-toggle-service.js v4.0.0 | ||
* feature-toggle-service.js v4.0.1 | ||
* https://willmendesneto.github.io/feature-toggle-service.js | ||
@@ -4,0 +4,0 @@ * |
@@ -10,4 +10,4 @@ // Package metadata for feature-toggle-service.js. | ||
Package.onUse(function(api) { | ||
api.addFiles("dist/feature-toggle-service.js", "client"); | ||
Package.onUse(function (api) { | ||
api.addFiles("lib/feature-toggle-service.js", "client"); | ||
}); |
{ | ||
"name": "feature-toggle-service", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"author": "Will Mendes <willmendesneto@gmail.com>", | ||
@@ -37,6 +37,6 @@ "description": "The simplest solution for feature toggle in Javascript. Simple how it should be.", | ||
"changelog-verify": "^1.1.0", | ||
"mocha": "^5.0.0", | ||
"mocha": "^6.0.0", | ||
"mustache": "^3.0.0", | ||
"nyc": "^13.0.1", | ||
"ts-node": "^7.0.0", | ||
"nyc": "^14.1.0", | ||
"ts-node": "^8.0.3", | ||
"tslint": "^5.4.3", | ||
@@ -55,3 +55,3 @@ "typescript": "^3.1.1", | ||
"build-min": "uglifyjs lib/feature-toggle-service.js --comments '/!/' -m --screw-ie8=true -c unused=false -o lib/feature-toggle-service.min.js", | ||
"pretest": "tslint src", | ||
"pretest": "tslint --project tsconfig.json", | ||
"test": "npm run compile && NODE_ENV=test nyc --reporter=lcov --reporter=text-summary mocha ./test/*.spec.js --require ./test/setup.js", | ||
@@ -58,0 +58,0 @@ "check-coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage", |
@@ -97,4 +97,3 @@ # Feature Toggle Service | ||
- <https://plus.google.com/+WilsonMendes> | ||
- <https://twitter.com/willmendesneto> | ||
- <http://github.com/willmendesneto> |
{ | ||
"compilerOptions": { | ||
/* Basic Options */ | ||
"target": "ES5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ | ||
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */ | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"target": "ES5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ | ||
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */ | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
// "sourceMap": true, /* Generates corresponding '.map' file. */ | ||
"outDir": "lib", /* Redirect output structure to the directory. */ | ||
"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ | ||
"removeComments": true, /* Do not emit comments to output. */ | ||
"outDir": "lib", /* Redirect output structure to the directory. */ | ||
"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ | ||
"removeComments": false, /* Do not emit comments to output. */ | ||
/* Strict Type-Checking Options */ | ||
"strict": true /* Enable all strict type-checking options. */ | ||
"strict": true /* Enable all strict type-checking options. */ | ||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ | ||
} | ||
} |
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
15090
165
99