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

@mcintyre94/assertions

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcintyre94/assertions - npm Package Compare versions

Comparing version 2.0.0-development to 2.0.0-experimental.a537d8d

dist/types/index.d.ts.map

2

dist/index.browser.js

@@ -44,3 +44,3 @@ // src/subtle-crypto.ts

throw new Error(
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@solana/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@mcintyre94/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
);

@@ -47,0 +47,0 @@ }

@@ -50,3 +50,3 @@ this.globalThis = this.globalThis || {};

throw new Error(
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@solana/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@mcintyre94/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
);

@@ -53,0 +53,0 @@ }

@@ -35,3 +35,3 @@ // src/subtle-crypto.ts

throw new Error(
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@solana/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@mcintyre94/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
);

@@ -38,0 +38,0 @@ }

@@ -35,3 +35,3 @@ // src/subtle-crypto.ts

throw new Error(
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@solana/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@mcintyre94/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20"
);

@@ -38,0 +38,0 @@ }

@@ -7,3 +7,3 @@ this.globalThis = this.globalThis || {};

Install and import \`@solana/webcrypto-ed25519-polyfill\` before generating keys in environments that do not support Ed25519.
Install and import \`@mcintyre94/webcrypto-ed25519-polyfill\` before generating keys in environments that do not support Ed25519.

@@ -10,0 +10,0 @@ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20`)}async function p(){var e;if(t(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.exportKey)!="function")throw new Error("No key export implementation could be found")}async function c(){var e;if(t(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.sign)!="function")throw new Error("No signing implementation could be found")}async function u(){var e;if(t(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.verify)!="function")throw new Error("No signature verification implementation could be found")}

@@ -1,7 +0,2 @@

declare function assertDigestCapabilityIsAvailable(): Promise<void>;
declare function assertKeyGenerationIsAvailable(): Promise<void>;
declare function assertKeyExporterIsAvailable(): Promise<void>;
declare function assertSigningCapabilityIsAvailable(): Promise<void>;
declare function assertVerificationCapabilityIsAvailable(): Promise<void>;
export { assertDigestCapabilityIsAvailable, assertKeyExporterIsAvailable, assertKeyGenerationIsAvailable, assertSigningCapabilityIsAvailable, assertVerificationCapabilityIsAvailable };
export * from './subtle-crypto.js';
//# sourceMappingURL=index.d.ts.map
{
"name": "@mcintyre94/assertions",
"version": "2.0.0-development",
"version": "2.0.0-experimental.a537d8d",
"description": "Helpers for asserting that a JavaScript environment supports certain features necessary for the operation of the Solana JavaScript SDK",

@@ -65,3 +65,3 @@ "exports": {

"jest-runner-prettier": "^1.0.0",
"prettier": "^2.8",
"prettier": "^3.1",
"tsup": "^8.0.1",

@@ -84,5 +84,4 @@ "typescript": "^5.2.2",

"compile:js": "tsup --config build-scripts/tsup.config.library.ts",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
"publish:typedefs": "rm -r dist/types && pnpm tsup --config build-scripts/tsup.config.library.ts --dts-only --out-dir dist/types",
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",

@@ -89,0 +88,0 @@ "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",

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

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

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