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

basex-encoder

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basex-encoder - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

dist/browser/index.d.ts

1

lib/index.d.ts

@@ -9,1 +9,2 @@ /// <reference types="node" />

export declare const encoder: (ALPHABET: string, defaultEncoding?: BufferEncoding) => IBaseXEncoder;
//# sourceMappingURL=index.d.ts.map

4

lib/index.js

@@ -1,4 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.encoder = (ALPHABET, defaultEncoding = 'utf8') => {
export const encoder = (ALPHABET, defaultEncoding = 'utf8') => {
const ALPHABET_MAP = {};

@@ -5,0 +3,0 @@ const BASE = ALPHABET.length;

{
"name": "basex-encoder",
"version": "0.0.4",
"version": "0.0.5",
"description": "Encode / decode any base X to and from string or buffer",
"main": "lib/index.js",
"module": "lib/index.js",
"main": "dist/node/index.js",
"browser": "dist/browser/index.js",
"types": "lib/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json && tscpaths -p ./tsconfig.json -s ./src -o ./lib",
"clear": "rm -rf ./lib ./coverage",
"all": "npm run clean && npm run format && npm run lint:fix && npm run build:all && npm run test",
"build:all": "npm run build:module && npm run build:node && npm run build:browser",
"build:browser": "tsc -p ./tsconfig.browser.json && tscpaths -p ./tsconfig.browser.json -s ./src -o ./dist/browser",
"build:module": "tsc -p ./tsconfig.module.json && tscpaths -p ./tsconfig.module.json -s ./src -o ./lib",
"build:node": "tsc -p ./tsconfig.node.json && tscpaths -p ./tsconfig.node.json -s ./src -o ./dist/node",
"clean": "rm -rf ./lib ./dist ./coverage",
"format": "prettier --write \"./*.{js,jsx,ts,tsx}\" \"./src/**/*.{js,jsx,ts,tsx}\"",
"lint": "tslint -c ./tslint.json \"src/**/*\"",
"lint:fix": "tslint --fix -c ./tslint.json \"src/**/*\"",
"start": "yarn clear && yarn format && yarn lint:fix && yarn test && yarn build",
"prepublish": "yarn start",
"lint": "tslint -c ./tslint.json \"src/**/*.ts\"",
"lint:fix": "tslint --fix -c ./tslint.json \"src/**/*.ts\"",
"precommit": "npm run all",
"prepublish": "npm run all",
"reinstall": "rm -rf ./node_modules ./package-lock.json ./yarn.lock && yarn",
"start": "npm run test",
"test": "jest",

@@ -45,3 +53,3 @@ "test:coverage": "jest --coverage",

"@types/jest": "^24.0.15",
"@types/node": "^12.0.12",
"@types/node": "^12.6.2",
"coveralls": "^3.0.4",

@@ -55,5 +63,5 @@ "jest": "^24.8.0",

"tslint-config-prettier": "^1.18.0",
"typescript": "^3.5.2"
"typescript": "^3.5.3"
},
"dependencies": {}
}

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