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

@matrixai/resources

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrixai/resources - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

6

dist/types.d.ts

@@ -7,3 +7,3 @@ /**

*/
declare type ResourceAcquire<Resource> = (resources?: readonly any[]) => Promise<readonly [ResourceRelease, Resource?]>;
type ResourceAcquire<Resource> = (resources?: readonly any[]) => Promise<readonly [ResourceRelease, Resource?]>;
/**

@@ -16,6 +16,6 @@ * Resource release function

*/
declare type ResourceRelease = (e?: Error) => Promise<void>;
declare type Resources<T extends readonly ResourceAcquire<unknown>[]> = {
type ResourceRelease = (e?: Error) => Promise<void>;
type Resources<T extends readonly ResourceAcquire<unknown>[]> = {
[K in keyof T]: T[K] extends ResourceAcquire<infer R> ? R : never;
};
export type { ResourceAcquire, ResourceRelease, Resources };
{
"name": "@matrixai/resources",
"version": "1.1.4",
"version": "1.1.5",
"author": "Roger Qiu",

@@ -15,3 +15,3 @@ "description": "Resource context management",

"prepare": "tsc -p ./tsconfig.build.json",
"build": "rimraf ./dist && tsc -p ./tsconfig.build.json",
"build": "shx rm -rf ./dist && tsc -p ./tsconfig.build.json",
"postversion": "npm install --package-lock-only --ignore-scripts --silent",

@@ -23,10 +23,11 @@ "ts-node": "ts-node",

"lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +",
"docs": "rimraf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src"
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src"
},
"devDependencies": {
"@swc/core": "^1.2.215",
"@swc/core": "^1.3.62",
"@swc/jest": "^0.2.26",
"@types/jest": "^28.1.3",
"@types/node": "^16.11.7",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"@types/node": "^18.15.0",
"@typescript-eslint/eslint-plugin": "^5.45.1",
"@typescript-eslint/parser": "^5.45.1",
"async-mutex": "^0.3.2",

@@ -38,11 +39,12 @@ "eslint": "^8.15.0",

"jest": "^28.1.1",
"jest-extended": "^3.0.1",
"jest-junit": "^14.0.0",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"shx": "^0.3.4",
"ts-jest": "^28.0.5",
"ts-node": "^10.9.1",
"tsconfig-paths": "^3.9.0",
"typedoc": "^0.22.15",
"typescript": "^4.5.2"
"typedoc": "^0.23.21",
"typescript": "^4.9.3"
}
}
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