Socket
Socket
Sign inDemoInstall

@iov/encoding

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iov/encoding - npm Package Compare versions

Comparing version 0.5.3 to 0.6.0

.npmignore

10

package.json
{
"name": "@iov/encoding",
"version": "0.5.3",
"version": "0.6.0",
"description": "Encoding helpers for IOV projects",

@@ -17,4 +17,4 @@ "author": "IOV SAS <admin@iov.one>",

"scripts": {
"docs": "rm -rf docs && typedoc --options typedoc.js",
"lint": "tslint -t verbose --project . ${TSLINT_FLAGS}",
"docs": "shx rm -rf docs && typedoc --options typedoc.js",
"lint": "cross-env-shell \"tslint -t verbose --project . ${TSLINT_FLAGS}\"",
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",

@@ -28,3 +28,3 @@ "test-node": "node jasmine-testrunner.js",

"prebuild": "yarn format && yarn lint",
"build": "tsc && rm ./types/* && mv build/*.d.ts ./types",
"build": "tsc && shx rm ./types/* && shx mv build/*.d.ts ./types",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",

@@ -40,3 +40,3 @@ "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"

},
"gitHead": "ff64a79172425efdd9d022bb26ee6ca99ec4a6d3"
"gitHead": "a5259d28a4e22e5ebcf6ae30e4af7c2922647120"
}

@@ -6,3 +6,2 @@ import * as base64js from "base64-js";

public static toHex(data: Uint8Array): string {
// tslint:disable-next-line:no-let
let out: string = "";

@@ -22,3 +21,2 @@ for (const byte of data) {

const listOfInts: number[] = [];
// tslint:disable-next-line:no-let
for (let i = 0; i < hexstring.length; i += 2) {

@@ -123,7 +121,4 @@ const hexByteAsString = hexstring.substr(i, 2);

// tslint:disable-next-line:no-let
let tzOffsetSign: number;
// tslint:disable-next-line:no-let
let tzOffsetHours: number;
// tslint:disable-next-line:no-let
let tzOffsetMinutes: number;

@@ -130,0 +125,0 @@

@@ -9,3 +9,3 @@ /* tslint:disable:no-bitwise */

// tslint:disable-next-line:prefer-for-of no-let
// tslint:disable-next-line:prefer-for-of
for (let i = 0; i < bytes.length; ++i) {

@@ -12,0 +12,0 @@ if (bytes[i] > 255 || bytes[i] < 0 || Number.isNaN(bytes[i])) {

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