feature-toggle-service
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -10,2 +10,8 @@ # Change Log | ||
## [4.1.1][] - 2019-06-22 | ||
### Fixed | ||
- Fixing types to make `debug` param in `isOn` method optional | ||
## [4.1.0][] - 2019-06-22 | ||
@@ -46,5 +52,6 @@ | ||
[Unreleased]: https://github.com/willmendesneto/feature-toggle-service/compare/v4.1.0...HEAD | ||
[Unreleased]: https://github.com/willmendesneto/feature-toggle-service/compare/v4.1.1...HEAD | ||
[4.1.1]: https://github.com/willmendesneto/feature-toggle-service/compare/v4.1.0...v4.1.1 | ||
[4.1.0]: https://github.com/willmendesneto/feature-toggle-service/compare/v4.0.1...v4.1.0 | ||
[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 |
@@ -13,3 +13,3 @@ export declare type FeatureToggleServiceConfig = { | ||
*/ | ||
declare const isOn: (key: string, debug: boolean) => boolean; | ||
declare const isOn: (key: string, debug?: boolean | undefined) => boolean; | ||
/** | ||
@@ -16,0 +16,0 @@ * Set feature toggle/flag configuration |
/*! | ||
* feature-toggle-service.js v4.1.0 | ||
* feature-toggle-service.js v4.1.1 | ||
* https://willmendesneto.github.io/feature-toggle-service.js | ||
@@ -36,3 +36,3 @@ * | ||
var isOn = function isOn(key, debug) { | ||
if (debug === true) { | ||
if (!!debug) { | ||
// tslint:disable-next-line | ||
@@ -39,0 +39,0 @@ console.log("\n[DEBUG] Execution Time in milliseconds: " + Date.now() + " version: \"" + version + "\" key: \"" + key + "\" settings: " + JSON.stringify(settings) + "\n"); |
/*! | ||
* feature-toggle-service.js v4.1.0 | ||
* feature-toggle-service.js v4.1.1 | ||
* https://willmendesneto.github.io/feature-toggle-service.js | ||
@@ -7,2 +7,2 @@ * | ||
*/ | ||
!function(e,n){if("function"==typeof define&&define.amd)define("FeatureToggleService",["exports"],n);else if("undefined"!=typeof exports)n(exports);else{var i={};n(i),e.FeatureToggleService=i}}(this,function(e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var t="4.0.1",o=((n={})[t]={},n),i=function e(n,i){return!0===i&&console.log("\n[DEBUG] Execution Time in milliseconds: "+Date.now()+' version: "'+t+'" key: "'+n+'" settings: '+JSON.stringify(o)+"\n"),!!o[t][n]};e.isOn=i;var r=function e(n){o[t]=n};e.set=r}); | ||
!function(e,n){if("function"==typeof define&&define.amd)define("FeatureToggleService",["exports"],n);else if("undefined"!=typeof exports)n(exports);else{var i={};n(i),e.FeatureToggleService=i}}(this,function(e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var t="4.0.1",o=((n={})[t]={},n),i=function e(n,i){return i&&console.log("\n[DEBUG] Execution Time in milliseconds: "+Date.now()+' version: "'+t+'" key: "'+n+'" settings: '+JSON.stringify(o)+"\n"),!!o[t][n]};e.isOn=i;var r=function e(n){o[t]=n};e.set=r}); |
{ | ||
"name": "feature-toggle-service", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"author": "Will Mendes <willmendesneto@gmail.com>", | ||
@@ -66,5 +66,5 @@ "description": "The simplest solution for feature toggle in Javascript. Simple how it should be.", | ||
"path": "./lib/feature-toggle-service.min.js", | ||
"maxSize": "450B" | ||
"maxSize": "449B" | ||
} | ||
] | ||
} |
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
16579