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

@dfinity/principal

Package Overview
Dependencies
Maintainers
7
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/principal - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

2

lib/cjs/index.js

@@ -43,3 +43,3 @@ "use strict";

if (principal.toText() !== text) {
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum.`);
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum (original value "${text}" may not be a valid Principal ID).`);
}

@@ -46,0 +46,0 @@ return principal;

@@ -40,3 +40,3 @@ import { decode, encode } from './utils/base32';

if (principal.toText() !== text) {
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum.`);
throw new Error(`Principal "${principal.toText()}" does not have a valid checksum (original value "${text}" may not be a valid Principal ID).`);
}

@@ -43,0 +43,0 @@ return principal;

{
"name": "@dfinity/principal",
"version": "0.10.1",
"version": "0.10.2",
"author": "DFINITY Stiftung <sdk@dfinity.org>",

@@ -39,3 +39,3 @@ "license": "Apache-2.0",

"devDependencies": {
"@types/jest": "^24.9.1",
"@types/jest": "^27.0.2",
"@typescript-eslint/eslint-plugin": "^4.14.2",

@@ -45,7 +45,7 @@ "@typescript-eslint/parser": "^4.14.2",

"eslint-plugin-jsdoc": "^31.6.0",
"jest": "^26.6.3",
"jest": "^27.3.1",
"jest-expect-message": "^1.0.2",
"node-fetch": "2.6.1",
"text-encoding": "^0.7.0",
"ts-jest": "^26.5.4",
"ts-jest": "^27.0.7",
"tslint": "^5.20.0",

@@ -52,0 +52,0 @@ "typedoc": "^0.20.32",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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