New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@japhet-dev/lotide

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@japhet-dev/lotide - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

assertObjectsEqual.js

@@ -1,3 +0,1 @@

const eqArrays = require('./eqArrays');
// Returns true if both objects have identical keys with identical values.

@@ -4,0 +2,0 @@ // Otherwise you get back a big fat false!

@@ -1,3 +0,1 @@

const assertEqual = require('./assertEqual');
const eqArrays = function(arr1, arr2) {

@@ -4,0 +2,0 @@ if (arr1.length !== arr2.length) {

@@ -1,3 +0,1 @@

const assertEqual = require('./assertEqual');
const eqArrays = require('./eqArrays');

@@ -4,0 +2,0 @@

4

package.json
{
"name": "@japhet-dev/lotide",
"version": "1.0.0",
"version": "1.0.1",
"description": "A mini clone of the Lodash (https://lodash.com) library.",
"main": "assertArraysEqual.js",
"main": "index.js",
"directories": {

@@ -7,0 +7,0 @@ "test": "test"

const takeUntil = function(array, callback) {
// Returns a slice of the array with elements taken from the beginning.
// Returns a slice of the array with elements taken from the beginning.
// It should keep going until the callback/predicate returns a truthy value.

@@ -12,4 +12,4 @@ let result = [];

return result;
}
};
module.exports = takeUntil;

@@ -8,3 +8,3 @@ const assert = require('chai').assert;

const itemsToCount = { "Karima": true };
assert.isUndefined(countOnly(allItems, itemsToCount))
assert.isUndefined(countOnly(allItems, itemsToCount));
});

@@ -15,3 +15,3 @@

const itemsToCount = { "Agouhanna": false };
assert.isUndefined(countOnly(allItems, itemsToCount))
assert.isUndefined(countOnly(allItems, itemsToCount));
});

@@ -23,3 +23,3 @@

const expectedOutput = { "Fang": 2 };
assert.deepEqual(countOnly(allItems, itemsToCount), expectedOutput)
assert.deepEqual(countOnly(allItems, itemsToCount), expectedOutput);
});

@@ -31,4 +31,4 @@

const expectedOutput = { "Jason": 1 };
assert.deepEqual(countOnly(allItems, itemsToCount), expectedOutput)
assert.deepEqual(countOnly(allItems, itemsToCount), expectedOutput);
});
});

@@ -6,4 +6,4 @@ const assert = require('chai').assert;

it("should return the key in the object that has the specified value", () => {
const inputObj = {
sci_fi: "The Expanse",
const inputObj = {
"sci_fi": "The Expanse",
comedy: "Brooklyn Nine-Nine",

@@ -20,4 +20,4 @@ drama: "The Wire",

it("should return the first key in the object that has the specified value when the value appears more than once in the object", () => {
const inputObj = {
sci_fi: "The Expanse",
const inputObj = {
"sci_fi": "The Expanse",
comedy: "Brooklyn Nine-Nine",

@@ -34,4 +34,4 @@ drama: "The Wire",

it("should return undefined if the object does not have the specified value", () => {
const inputObj = {
sci_fi: "The Expanse",
const inputObj = {
"sci_fi": "The Expanse",
comedy: "Brooklyn Nine-Nine",

@@ -47,4 +47,4 @@ drama: "The Wire",

it("should return undefined if no value to specified to find", () => {
const inputObj = {
sci_fi: "The Expanse",
const inputObj = {
"sci_fi": "The Expanse",
comedy: "Brooklyn Nine-Nine",

@@ -51,0 +51,0 @@ drama: "The Wire",

@@ -9,3 +9,3 @@ const assert = require('chai').assert;

const expectedOutput = [ 1, 2, 5, 7, 2 ];
assert.deepEqual(takeUntil(inputDataArr, callback), expectedOutput)
assert.deepEqual(takeUntil(inputDataArr, callback), expectedOutput);
});

@@ -17,5 +17,5 @@

const expectedOutput = [ 'I\'ve', 'been', 'to', 'Hollywood'];
assert.deepEqual(takeUntil(inputDataArr, callback), expectedOutput)
assert.deepEqual(takeUntil(inputDataArr, callback), expectedOutput);
});
});
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