@leichtgewicht/ip-codec
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "@leichtgewicht/ip-codec", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Small package to encode or decode IP addresses from buffers to strings.", | ||
"main": "index.js", | ||
"main": "index.cjs", | ||
"types": "types", | ||
"exports": { | ||
".": { | ||
"import": "./index.mjs", | ||
"require": "./index.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"lint": "standard && dtslint --localTs node_modules/typescript/lib types", | ||
"test": "fresh-tape test.js", | ||
"test-cov": "c8 npm run test" | ||
"test": "npm run lint && npm run unit", | ||
"unit": "fresh-tape test.mjs", | ||
"coverage": "c8 npm run unit", | ||
"prepare": "node ./scripts/esm2umd.mjs ipCodec" | ||
}, | ||
@@ -32,8 +40,9 @@ "repository": { | ||
"devDependencies": { | ||
"c8": "^7.7.3", | ||
"dtslint": "^4.1.1", | ||
"fresh-tape": "^5.2.4", | ||
"standard": "^16.0.3", | ||
"typescript": "^4.3.5" | ||
"@definitelytyped/dtslint": "0.0.112", | ||
"c8": "^7.11.2", | ||
"esm2umd": "^0.2.0", | ||
"fresh-tape": "^5.5.3", | ||
"standard": "^17.0.0", | ||
"typescript": "^4.6.4" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # @leichtgewicht/ip-codec | ||
```js | ||
const { encode, decode, sizeOf, familyOf } = require('@leichtgewicht/ip-codec') | ||
import { encode, decode, sizeOf, familyOf } from '@leichtgewicht/ip-codec' | ||
@@ -55,3 +55,3 @@ const uint8Array = encode("127.0.0.1") | ||
```js | ||
const { v4, v6 } = require('@leichtgewicht/ip-codec') | ||
import { v4, v6 } from '@leichtgewicht/ip-codec' | ||
@@ -58,0 +58,0 @@ v4.decode(v4.encode('127.0.0.1')) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17660
6
431