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.4 to 2.0.0

12

dist/esm/index.js

@@ -169,2 +169,9 @@ var __create = Object.create;

return result;
},
has(target, property) {
if (property === this.name || property === key) {
return true;
}
const targetKey = property;
return targetKey in target;
}

@@ -190,6 +197,3 @@ };

const invalidItem = itemsKeys.find(
(itemKey) => {
var _a;
return typeof ((_a = items[itemKey]) == null ? void 0 : _a[key]) !== "function";
}
(itemKey) => typeof items[itemKey]?.[key] !== "function"
);

@@ -196,0 +200,0 @@ if (invalidItem) {

@@ -115,5 +115,5 @@ declare class Container {

declare type GenericFn = (...args: any[]) => any;
declare type GenericCurriedFn<ReturnFn = GenericFn> = (...args: any[]) => ReturnFn;
declare type Resource<Name extends string, Key extends string, Fn extends GenericFn> = {
type GenericFn = (...args: any[]) => any;
type GenericCurriedFn<ReturnFn = GenericFn> = (...args: any[]) => ReturnFn;
type Resource<Name extends string, Key extends string, Fn extends GenericFn> = {
[NameItem in Name]: true;

@@ -123,8 +123,8 @@ } & {

} & Record<string, unknown>;
declare type ResourceCreatorCurriedFn<Name extends string, Key extends string, Fn extends GenericCurriedFn> = (...args: any[]) => Resource<Name, Key, ReturnType<Fn>>;
declare type ResourceCreatorHandler<Name extends string, Key extends string, Fn extends GenericCurriedFn> = ProxyHandler<ResourceCreatorCurriedFn<Name, Key, Fn>> & {
type ResourceCreatorCurriedFn<Name extends string, Key extends string, Fn extends GenericCurriedFn> = (...args: any[]) => Resource<Name, Key, ReturnType<Fn>>;
type ResourceCreatorHandler<Name extends string, Key extends string, Fn extends GenericCurriedFn> = ProxyHandler<ResourceCreatorCurriedFn<Name, Key, Fn>> & {
name: Name;
resource: ReturnType<Fn> | null;
};
declare type ResourceCreator<Name extends string, Key extends string, CreatorFn extends GenericCurriedFn, ResourceFn extends GenericFn> = ((...args: Parameters<CreatorFn>) => Resource<Name, Key, ResourceFn>) & Resource<Name, Key, ResourceFn>;
type ResourceCreator<Name extends string, Key extends string, CreatorFn extends GenericCurriedFn, ResourceFn extends GenericFn> = ((...args: Parameters<CreatorFn>) => Resource<Name, Key, ResourceFn>) & Resource<Name, Key, ResourceFn>;

@@ -194,3 +194,3 @@ /**

declare type GenericDict = Record<any, any>;
type GenericDict = Record<any, any>;
/**

@@ -281,4 +281,4 @@ * A helper that reusable services can use to resolve dependencies in constructors and/or

declare type ProviderName = 'provider';
declare type ProviderKey = 'register';
type ProviderName = 'provider';
type ProviderKey = 'register';
/**

@@ -291,3 +291,3 @@ * The function the container will call when the provider is registered.

*/
declare type ProviderRegisterFn<ContainerType extends Jimple = Jimple> = (container: ContainerType) => void;
type ProviderRegisterFn<ContainerType extends Jimple = Jimple> = (container: ContainerType) => void;
/**

@@ -315,3 +315,3 @@ * Generates a function to create providers for a specific type of container.

*/
declare type Provider = ReturnType<typeof provider>;
type Provider = ReturnType<typeof provider>;

@@ -341,3 +341,3 @@ /**

*/
declare type ProviderCreatorFn = Parameters<typeof providerCreator>[0];
type ProviderCreatorFn = Parameters<typeof providerCreator>[0];

@@ -344,0 +344,0 @@ /**

@@ -194,2 +194,9 @@ "use strict";

return result;
},
has(target, property) {
if (property === this.name || property === key) {
return true;
}
const targetKey = property;
return targetKey in target;
}

@@ -215,6 +222,3 @@ };

const invalidItem = itemsKeys.find(
(itemKey) => {
var _a;
return typeof ((_a = items[itemKey]) == null ? void 0 : _a[key]) !== "function";
}
(itemKey) => typeof items[itemKey]?.[key] !== "function"
);

@@ -221,0 +225,0 @@ if (invalidItem) {

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

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

"devDependencies": {
"jest": "^29.2.1",
"jest": "^29.3.1",
"jimple": "^1.5.0",
"ts-jest": "^29.0.3",
"tsup": "^6.3.0",
"typescript": "^4.8.4"
"tsup": "^6.5.0",
"typescript": "^4.9.4"
},
"engine-strict": true,
"engines": {
"node": ">=14"
"node": ">=16"
},

@@ -47,3 +47,3 @@ "main": "./dist/index.js",

},
"gitHead": "e584e4ef93ede1065a91a1d3e88e070662acb66e"
"gitHead": "86d8723fd11c969e334d58c4e6bc4d290311fe26"
}

@@ -379,5 +379,5 @@ # 💉 jimple

As this project is part of the `packages` monorepo, it requires Yarn, and some of the tooling, like ESLint and Husky, are installed on the root's `package.json`.
As this project is part of the `packages` monorepo, some of the tooling, like ESLint and Husky, are installed on the root's `package.json`.
#### Yarn tasks
#### NPM tasks

@@ -384,0 +384,0 @@ | Task | Description |

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