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

extendable-immutable

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extendable-immutable - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

es/util/startsWith.js

3

es/util/createExtendable.js
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 @@ ) {

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