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

@dfinity/candid

Package Overview
Dependencies
Maintainers
10
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/candid - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

4

lib/cjs/utils/buffer.d.ts

@@ -70,2 +70,4 @@ /**

*/
export declare function bufFromBufLike(bufLike: ArrayBuffer | Uint8Array | DataView | ArrayBufferView | ArrayBufferLike): ArrayBuffer;
export declare function bufFromBufLike(bufLike: ArrayBuffer | Uint8Array | DataView | ArrayBufferView | ArrayBufferLike | [number] | number[] | {
buffer: ArrayBuffer;
}): ArrayBuffer;

@@ -127,8 +127,11 @@ "use strict";

}
if (Array.isArray(bufLike)) {
return uint8ToBuf(new Uint8Array(bufLike));
}
if ('buffer' in bufLike) {
return bufLike.buffer;
return bufFromBufLike(bufLike.buffer);
}
return new Uint8Array(bufLike);
return uint8ToBuf(new Uint8Array(bufLike));
}
exports.bufFromBufLike = bufFromBufLike;
//# sourceMappingURL=buffer.js.map

@@ -70,2 +70,4 @@ /**

*/
export declare function bufFromBufLike(bufLike: ArrayBuffer | Uint8Array | DataView | ArrayBufferView | ArrayBufferLike): ArrayBuffer;
export declare function bufFromBufLike(bufLike: ArrayBuffer | Uint8Array | DataView | ArrayBufferView | ArrayBufferLike | [number] | number[] | {
buffer: ArrayBuffer;
}): ArrayBuffer;

@@ -119,7 +119,10 @@ /**

}
if (Array.isArray(bufLike)) {
return uint8ToBuf(new Uint8Array(bufLike));
}
if ('buffer' in bufLike) {
return bufLike.buffer;
return bufFromBufLike(bufLike.buffer);
}
return new Uint8Array(bufLike);
return uint8ToBuf(new Uint8Array(bufLike));
}
//# sourceMappingURL=buffer.js.map
{
"name": "@dfinity/candid",
"version": "1.1.1",
"version": "1.2.0",
"author": "DFINITY Stiftung <sdk@dfinity.org>",

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

"peerDependencies": {
"@dfinity/principal": "^1.1.1"
"@dfinity/principal": "^1.2.0"
},

@@ -54,0 +54,0 @@ "devDependencies": {

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