uint8-encoding
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -5,8 +5,2 @@ declare const U8: { | ||
}; | ||
declare const _default: typeof U8 & { | ||
default: typeof U8; | ||
} | ||
declare namespace _default { | ||
export type type = U8; | ||
} | ||
export = _default; | ||
export default U8; |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
/* HELPERS */ | ||
@@ -16,4 +15,2 @@ const encoder = new TextEncoder(); | ||
/* EXPORT */ | ||
module.exports = U8; | ||
module.exports.default = U8; | ||
Object.defineProperty(module.exports, "__esModule", { value: true }); | ||
export default U8; |
{ | ||
"name": "uint8-encoding", | ||
"repository": "github:fabiospampinato/uint8-encoding", | ||
"description": "Uint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"compile": "tsc --skipLibCheck && tstei", | ||
"compile:watch": "tsc --skipLibCheck --watch", | ||
"test": "fava", | ||
"test:watch": "fava -w", | ||
"clean": "tsex clean", | ||
"compile": "tsex compile", | ||
"compile:watch": "tsex compile --watch", | ||
"test": "tsex test", | ||
"test:watch": "tsex test --watch", | ||
"prepublishOnly": "npm run clean && npm run compile && npm run test" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/fabiospampinato/uint8-encoding/issues" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Fabio Spampinato", | ||
"email": "spampinabio@gmail.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/fabiospampinato/uint8-encoding.git" | ||
}, | ||
"keywords": [ | ||
@@ -34,8 +25,7 @@ "uint8", | ||
"devDependencies": { | ||
"fast-check": "^2.17.0", | ||
"fava": "^0.0.4", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.3.5", | ||
"typescript-transform-export-interop": "^1.0.4" | ||
"fast-check": "^2.24.0", | ||
"fava": "^0.0.6", | ||
"tsex": "^1.0.4", | ||
"typescript": "^4.6.3" | ||
} | ||
} |
/* IMPORT */ | ||
const {describe} = require ( 'fava' ); | ||
const fc = require ( 'fast-check' ); | ||
const {default: U8} = require ( '../dist' ); | ||
import fc from 'fast-check'; | ||
import {describe} from 'fava'; | ||
import U8 from '../dist/index.js'; | ||
@@ -12,2 +12,8 @@ /* MAIN */ | ||
it ( 'returns an actual Uint8Array', t => { | ||
t.is ( U8.encode ( 'foo' ).constructor, Uint8Array ); | ||
}); | ||
it ( 'works with fc-generated codepoints', t => { | ||
@@ -14,0 +20,0 @@ |
{ | ||
"compilerOptions": { | ||
"alwaysStrict": true, | ||
"declaration": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"inlineSourceMap": false, | ||
"jsx": "react", | ||
"lib": ["dom", "es2020"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"newLine": "LF", | ||
"noFallthroughCasesInSwitch": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": false, | ||
"outDir": "dist", | ||
"pretty": true, | ||
"strictNullChecks": true, | ||
"target": "es2016" | ||
}, | ||
"include": [ | ||
"src" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
"extends": "tsex/tsconfig.json" | ||
} |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the 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
4
Yes
4315
58
2
1