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

@homer0/jimple

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@homer0/jimple - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

29

dist/esm/index.js

@@ -18,3 +18,6 @@ var __create = Object.create;

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));

@@ -178,12 +181,22 @@ // ../../../node_modules/jimple/src/Jimple.js

const itemsKeys = Object.keys(items);
const invalidKey = itemsKeys.some((itemKey) => invalidKeys.includes(String(itemKey)));
const invalidKey = itemsKeys.some(
(itemKey) => invalidKeys.includes(String(itemKey))
);
if (invalidKey) {
throw new Error(`No item on the collection can have the keys \`${name}\` nor \`${key}\``);
throw new Error(
`No item on the collection can have the keys \`${name}\` nor \`${key}\``
);
}
const invalidItem = itemsKeys.find((itemKey) => {
var _a;
return typeof ((_a = items[itemKey]) == null ? void 0 : _a[key]) !== "function";
});
const invalidItem = itemsKeys.find(
(itemKey) => {
var _a;
return typeof ((_a = items[itemKey]) == null ? void 0 : _a[key]) !== "function";
}
);
if (invalidItem) {
throw new Error(`The item \`${String(invalidItem)}\` is invalid: it doesn't have a \`${key}\` function`);
throw new Error(
`The item \`${String(
invalidItem
)}\` is invalid: it doesn't have a \`${key}\` function`
);
}

@@ -190,0 +203,0 @@ const useFn = fn ? (...args) => fn(items, ...args) : (...args) => {

@@ -23,3 +23,6 @@ "use strict";

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -203,12 +206,22 @@

const itemsKeys = Object.keys(items);
const invalidKey = itemsKeys.some((itemKey) => invalidKeys.includes(String(itemKey)));
const invalidKey = itemsKeys.some(
(itemKey) => invalidKeys.includes(String(itemKey))
);
if (invalidKey) {
throw new Error(`No item on the collection can have the keys \`${name}\` nor \`${key}\``);
throw new Error(
`No item on the collection can have the keys \`${name}\` nor \`${key}\``
);
}
const invalidItem = itemsKeys.find((itemKey) => {
var _a;
return typeof ((_a = items[itemKey]) == null ? void 0 : _a[key]) !== "function";
});
const invalidItem = itemsKeys.find(
(itemKey) => {
var _a;
return typeof ((_a = items[itemKey]) == null ? void 0 : _a[key]) !== "function";
}
);
if (invalidItem) {
throw new Error(`The item \`${String(invalidItem)}\` is invalid: it doesn't have a \`${key}\` function`);
throw new Error(
`The item \`${String(
invalidItem
)}\` is invalid: it doesn't have a \`${key}\` function`
);
}

@@ -215,0 +228,0 @@ const useFn = fn ? (...args) => fn(items, ...args) : (...args) => {

{
"name": "@homer0/jimple",
"description": "An extended version of the Jimple lib, with extra features",
"version": "1.0.3",
"version": "1.0.4",
"repository": {

@@ -26,7 +26,7 @@ "type": "git",

"devDependencies": {
"jest": "^28.1.2",
"jest": "^29.2.1",
"jimple": "^1.5.0",
"ts-jest": "^28.0.5",
"tsup": "^6.1.3",
"typescript": "^4.7.4"
"ts-jest": "^29.0.3",
"tsup": "^6.3.0",
"typescript": "^4.8.4"
},

@@ -41,2 +41,3 @@ "engine-strict": true,

"scripts": {
"lint": "eslint .",
"test": "jest -c ./.jestrc.js",

@@ -47,3 +48,3 @@ "types:check": "tsc --noEmit && tsc --noEmit --project ./tests/tsconfig.json",

},
"gitHead": "dd7bbfcd146de65926922f560df51a6a3fb89424"
"gitHead": "e584e4ef93ede1065a91a1d3e88e070662acb66e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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