@takeshape/util
Advanced tools
Comparing version 5.25.0 to 5.28.0
@@ -6,2 +6,5 @@ export function arrayContainsAll(a, b) { | ||
return arrayContainsAll(a, b) && arrayContainsAll(b, a); | ||
} | ||
export function isDefined(x) { | ||
return x !== null && x !== undefined; | ||
} |
export declare function arrayContainsAll<T>(a: T[], b: T[]): boolean; | ||
export declare function setIsEqual<T>(a: T[], b: T[]): boolean; | ||
export declare function isDefined<T>(x: T | null | undefined): x is T; |
@@ -8,2 +8,3 @@ "use strict"; | ||
exports.setIsEqual = setIsEqual; | ||
exports.isDefined = isDefined; | ||
@@ -16,2 +17,6 @@ function arrayContainsAll(a, b) { | ||
return arrayContainsAll(a, b) && arrayContainsAll(b, a); | ||
} | ||
function isDefined(x) { | ||
return x !== null && x !== undefined; | ||
} |
142
package.json
{ | ||
"name": "@takeshape/util", | ||
"version": "5.25.0", | ||
"homepage": "https://www.takeshape.io", | ||
"repository": { | ||
"type": "git", | ||
"url": "github.com:takeshape/takeshape.git" | ||
}, | ||
"author": "asprouse", | ||
"license": "UNLICENSED", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"es" | ||
], | ||
"description": "TakeShape Util", | ||
"scripts": { | ||
"lint": "eslint --ext .js --ext .ts --ignore-path .gitignore src", | ||
"test": "jest", | ||
"test-changed": "pnpm run test -- --changedSince=master", | ||
"typecheck": "tsc --skipLibCheck --noEmit", | ||
"clean": "rimraf lib es", | ||
"prepublishOnly": "pnpm run lint && pnpm run test && pnpm run clean && pnpm run build", | ||
"build": "pnpm run build:types && pnpm run build:js && pnpm run build:es", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build:js": "cross-env BABEL_MODULES=commonjs babel src --out-dir lib --extensions \".js,.ts\" --ignore '**/__tests__'", | ||
"build:es": "cross-env BABEL_MODULES=es babel src --out-dir es --extensions \".js,.ts\" --ignore '**/__tests__'" | ||
}, | ||
"jest": { | ||
"testEnvironment": "node", | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json", | ||
"jsx", | ||
"ts", | ||
"tsx", | ||
"d.ts", | ||
"node" | ||
], | ||
"transform": { | ||
"^.+\\.[t|j]sx?$": "babel-jest" | ||
}, | ||
"roots": [ | ||
"src" | ||
], | ||
"testMatch": [ | ||
"**/*.test.js", | ||
"**/*.test.ts" | ||
], | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"src/**/*.js", | ||
"src/**/*.ts" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
".*/__tests__/.*" | ||
] | ||
}, | ||
"keywords": [], | ||
"dependencies": { | ||
"lodash": "^4.17.15", | ||
"mime-types": "^2.1.27", | ||
"pify": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.157", | ||
"@types/mime-types": "^2.1.0", | ||
"@types/pify": "^3.0.2" | ||
} | ||
"name": "@takeshape/util", | ||
"version": "5.28.0", | ||
"homepage": "https://www.takeshape.io", | ||
"repository": { | ||
"type": "git", | ||
"url": "github.com:takeshape/takeshape.git" | ||
}, | ||
"author": "asprouse", | ||
"license": "UNLICENSED", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"es" | ||
], | ||
"description": "TakeShape Util", | ||
"scripts": { | ||
"lint": "eslint --ext .js --ext .ts --ignore-path .gitignore src", | ||
"test": "jest", | ||
"test-changed": "pnpm run test -- --changedSince=master", | ||
"typecheck": "tsc --skipLibCheck --noEmit", | ||
"clean": "rimraf lib es", | ||
"prepublishOnly": "pnpm run lint && pnpm run test && pnpm run clean && pnpm run build", | ||
"build": "pnpm run build:types && pnpm run build:js && pnpm run build:es", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build:js": "cross-env BABEL_MODULES=commonjs babel src --out-dir lib --extensions \".js,.ts\" --ignore '**/__tests__'", | ||
"build:es": "cross-env BABEL_MODULES=es babel src --out-dir es --extensions \".js,.ts\" --ignore '**/__tests__'" | ||
}, | ||
"jest": { | ||
"testEnvironment": "node", | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json", | ||
"jsx", | ||
"ts", | ||
"tsx", | ||
"d.ts", | ||
"node" | ||
], | ||
"transform": { | ||
"^.+\\.[t|j]sx?$": "babel-jest" | ||
}, | ||
"roots": [ | ||
"src" | ||
], | ||
"testMatch": [ | ||
"**/*.test.js", | ||
"**/*.test.ts" | ||
], | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"src/**/*.js", | ||
"src/**/*.ts" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
".*/__tests__/.*" | ||
] | ||
}, | ||
"keywords": [], | ||
"dependencies": { | ||
"lodash": "^4.17.15", | ||
"mime-types": "^2.1.27", | ||
"pify": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.157", | ||
"@types/mime-types": "^2.1.0", | ||
"@types/pify": "^3.0.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12639
265
1