Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uint8-encoding

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uint8-encoding - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

license

8

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc