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

remeda

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remeda - npm Package Compare versions

Comparing version 0.0.26 to 0.0.27

2

dist/commonjs/pick.js

@@ -14,3 +14,3 @@ "use strict";

return names.reduce(function (acc, name) {
if (object.hasOwnProperty(name)) {
if (name in object) {
acc[name] = object[name];

@@ -17,0 +17,0 @@ }

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });

@@ -15,2 +28,20 @@ var pick_1 = require("./pick");

});
test('support inherited properties', function () {
var BaseClass = /** @class */ (function () {
function BaseClass() {
}
BaseClass.prototype.testProp = function () { return 'abc'; };
;
return BaseClass;
}());
var TestClass = /** @class */ (function (_super) {
__extends(TestClass, _super);
function TestClass() {
return _super !== null && _super.apply(this, arguments) || this;
}
return TestClass;
}(BaseClass));
var testClass = new TestClass();
expect(pick_1.pick(testClass, ['testProp'])).toEqual({ testProp: expect.any(Function) });
});
});

@@ -17,0 +48,0 @@ describe('data last', function () {

@@ -10,3 +10,3 @@ import { purry } from './purry';

return names.reduce(function (acc, name) {
if (object.hasOwnProperty(name)) {
if (name in object) {
acc[name] = object[name];

@@ -13,0 +13,0 @@ }

@@ -0,1 +1,14 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { pick } from './pick';

@@ -13,2 +26,20 @@ import { pipe } from './pipe';

});
test('support inherited properties', function () {
var BaseClass = /** @class */ (function () {
function BaseClass() {
}
BaseClass.prototype.testProp = function () { return 'abc'; };
;
return BaseClass;
}());
var TestClass = /** @class */ (function (_super) {
__extends(TestClass, _super);
function TestClass() {
return _super !== null && _super.apply(this, arguments) || this;
}
return TestClass;
}(BaseClass));
var testClass = new TestClass();
expect(pick(testClass, ['testProp'])).toEqual({ testProp: expect.any(Function) });
});
});

@@ -15,0 +46,0 @@ describe('data last', function () {

{
"name": "remeda",
"version": "0.0.26",
"version": "0.0.27",
"description": "A utility library for JavaScript and Typescript.",

@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js",

@@ -14,2 +14,10 @@ import { pick } from './pick';

});
test('support inherited properties', () => {
class BaseClass {
testProp() {return 'abc'};
}
class TestClass extends BaseClass { }
const testClass = new TestClass();
expect(pick(testClass, ['testProp'])).toEqual({ testProp: expect.any(Function) })
});
});

@@ -16,0 +24,0 @@

@@ -40,3 +40,3 @@ import { purry } from './purry';

return names.reduce((acc, name) => {
if (object.hasOwnProperty(name)) {
if (name in object) {
acc[name] = object[name];

@@ -43,0 +43,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