Comparing version 1.2.1 to 1.2.2
@@ -11,3 +11,3 @@ export type Dict<T = any, K extends string = string> = { | ||
export function noop(): any; | ||
export function isNullable(value: any): boolean; | ||
export function isNullable(value: any): value is null | undefined | void; | ||
export function isPlainObject(data: any): boolean; | ||
@@ -14,0 +14,0 @@ export function valueMap<T, U>(object: Dict<T>, transform: (value: T, key: string) => U): Dict<U>; |
{ | ||
"name": "cosmokit", | ||
"description": "A collection of common utilities", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "lib/index.cjs", | ||
@@ -26,5 +26,5 @@ "module": "lib/index.mjs", | ||
"test": "mocha -r esbuild-register tests/*.spec.ts", | ||
"test:text": "rimraf coverage && c8 -r text yarn test", | ||
"test:json": "rimraf coverage && c8 -r json yarn test", | ||
"test:html": "rimraf coverage && c8 -r html yarn test" | ||
"test:text": "shx rm -rf coverage && c8 -r text yarn test", | ||
"test:json": "shx rm -rf coverage && c8 -r json yarn test", | ||
"test:html": "shx rm -rf coverage && c8 -r html yarn test" | ||
}, | ||
@@ -35,13 +35,13 @@ "devDependencies": { | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^17.0.35", | ||
"@types/node": "^18.6.4", | ||
"@types/sinonjs__fake-timers": "^6.0.4", | ||
"c8": "^7.11.3", | ||
"c8": "^7.12.0", | ||
"chai": "^4.3.6", | ||
"dtsc": "^1.2.0", | ||
"esbuild": "^0.14.39", | ||
"esbuild-register": "^3.3.2", | ||
"dtsc": "^2.2.3", | ||
"esbuild": "^0.14.51", | ||
"esbuild-register": "^3.3.3", | ||
"mocha": "^9.2.2", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.7.2" | ||
"shx": "^0.3.4", | ||
"typescript": "^4.7.4" | ||
} | ||
} | ||
} |
@@ -11,12 +11,15 @@ # cosmokit | ||
### Node.js | ||
```powershell | ||
yarn add cosmokit | ||
```sh | ||
npm install cosmokit | ||
``` | ||
```ts | ||
import cosmokit from "cosmokit" | ||
import cosmokit from 'cosmokit' | ||
``` | ||
### Deno | ||
```ts | ||
import cosmokit from "https://cdn.skypack.dev/cosmokit" | ||
import cosmokit from 'https://cdn.skypack.dev/cosmokit' | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
58174
646
24