extendable-immutable
Advanced tools
Comparing version 1.3.0 to 1.3.1
import invariant from 'invariant'; | ||
import startsWith from './startsWith'; | ||
@@ -50,3 +51,3 @@ var unwrappedMethods = ['constructor', 'get', 'getIn', 'first', 'last', 'reduce', 'reduceRight', 'find', 'findLast', 'findEntry', 'findLastEntry', 'max', 'maxBy', 'min', 'minBy', 'clear' // Important! We're manually overriding this method | ||
for (var key in base.prototype) { | ||
if (!key.startsWith('__') && !key.startsWith('to') && unwrappedMethods.indexOf(key) === -1) { | ||
if (!startsWith(key, '__') && !startsWith(key, 'to') && unwrappedMethods.indexOf(key) === -1) { | ||
(function () { | ||
@@ -53,0 +54,0 @@ var _originalMethod = base.prototype[key]; |
@@ -12,2 +12,6 @@ 'use strict'; | ||
var _startsWith = require('./startsWith'); | ||
var _startsWith2 = _interopRequireDefault(_startsWith); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -62,3 +66,3 @@ | ||
for (var key in base.prototype) { | ||
if (!key.startsWith('__') && !key.startsWith('to') && unwrappedMethods.indexOf(key) === -1) { | ||
if (!(0, _startsWith2.default)(key, '__') && !(0, _startsWith2.default)(key, 'to') && unwrappedMethods.indexOf(key) === -1) { | ||
(function () { | ||
@@ -65,0 +69,0 @@ var _originalMethod = base.prototype[key]; |
{ | ||
"name": "extendable-immutable", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"main": "lib/index.js", | ||
@@ -52,3 +52,3 @@ "jsnext:main": "es/index.js", | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"babel-preset-philpl": "^0.3.1", | ||
"babel-preset-philpl": "^0.5.0", | ||
"babel-register": "^6.16.0", | ||
@@ -64,3 +64,3 @@ "coveralls": "^2.11.14", | ||
"mocha": "^3.1.0", | ||
"nyc": "^8.3.0", | ||
"nyc": "^10.0.0", | ||
"pretty-time": "^0.2.0" | ||
@@ -67,0 +67,0 @@ }, |
import invariant from 'invariant' | ||
import startsWith from './startsWith' | ||
@@ -66,4 +67,4 @@ const unwrappedMethods = [ | ||
if ( | ||
!key.startsWith('__') && | ||
!key.startsWith('to') && | ||
!startsWith(key, '__') && | ||
!startsWith(key, 'to') && | ||
unwrappedMethods.indexOf(key) === -1 | ||
@@ -70,0 +71,0 @@ ) { |
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
31220
33
544