@matrixai/resources
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -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" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20264
0
21