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

@metamask/snaps-utils

Package Overview
Dependencies
Maintainers
8
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/snaps-utils - npm Package Compare versions

Comparing version 0.26.2 to 0.27.0

dist/entropy.d.ts

2

dist/index.browser.d.ts
export * from './caveats';
export * from './deep-clone';
export * from './default-endowments';
export * from './entropy';
export * from './flatMap';
export * from './handlers';
export * from './json-rpc';

@@ -6,0 +8,0 @@ export * from './manifest/index.browser';

@@ -20,3 +20,5 @@ "use strict";

__exportStar(require("./default-endowments"), exports);
__exportStar(require("./entropy"), exports);
__exportStar(require("./flatMap"), exports);
__exportStar(require("./handlers"), exports);
__exportStar(require("./json-rpc"), exports);

@@ -23,0 +25,0 @@ __exportStar(require("./manifest/index.browser"), exports);

@@ -5,5 +5,7 @@ export * from './caveats';

export * from './default-endowments';
export * from './entropy';
export * from './eval';
export * from './flatMap';
export * from './fs';
export * from './handlers';
export * from './json-rpc';

@@ -10,0 +12,0 @@ export * from './manifest';

@@ -21,5 +21,7 @@ "use strict";

__exportStar(require("./default-endowments"), exports);
__exportStar(require("./entropy"), exports);
__exportStar(require("./eval"), exports);
__exportStar(require("./flatMap"), exports);
__exportStar(require("./fs"), exports);
__exportStar(require("./handlers"), exports);
__exportStar(require("./json-rpc"), exports);

@@ -26,0 +28,0 @@ __exportStar(require("./manifest"), exports);

1

dist/manifest/validation.d.ts
import { Infer, Struct } from 'superstruct';
export declare const SIP_6_MAGIC_VALUE: `${number}'`;
export declare type Base64Opts = {

@@ -4,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSnapManifest = exports.assertIsSnapManifest = exports.isSnapManifest = exports.SnapManifestStruct = exports.PermissionsStruct = exports.SnapGetBip32EntropyPermissionsStruct = exports.Bip32EntropyStruct = exports.bip32entropy = exports.Bip32PathStruct = exports.base64 = exports.SIP_6_MAGIC_VALUE = void 0;
exports.createSnapManifest = exports.assertIsSnapManifest = exports.isSnapManifest = exports.SnapManifestStruct = exports.PermissionsStruct = exports.SnapGetBip32EntropyPermissionsStruct = exports.Bip32EntropyStruct = exports.bip32entropy = exports.Bip32PathStruct = exports.base64 = void 0;
const utils_1 = require("@metamask/utils");
const superstruct_1 = require("superstruct");
const cronjob_1 = require("../cronjob");
const entropy_1 = require("../entropy");
const json_rpc_1 = require("../json-rpc");

@@ -12,7 +13,8 @@ const namespace_1 = require("../namespace");

const versions_1 = require("../versions");
// 0xd36e6170 - 0x80000000
exports.SIP_6_MAGIC_VALUE = `1399742832'`;
// BIP-43 purposes that cannot be used for entropy derivation. These are in the
// string form, ending with `'`.
const FORBIDDEN_PURPOSES = [exports.SIP_6_MAGIC_VALUE];
const FORBIDDEN_PURPOSES = [
entropy_1.SIP_6_MAGIC_VALUE,
entropy_1.STATE_ENCRYPTION_MAGIC_VALUE,
];
/**

@@ -19,0 +21,0 @@ * Ensure that a provided string-based struct is valid base64.

@@ -1,5 +0,5 @@

import { SnapFunctionExports, SnapKeyring as Keyring } from '@metamask/snaps-types';
import { Json } from '@metamask/utils';
import { Infer, Struct } from 'superstruct';
import { SnapManifest } from './manifest/validation';
import { SnapFunctionExports, SnapKeyring as Keyring } from './handlers';
import { SnapManifest } from './manifest';
export declare enum NpmSnapFileNames {

@@ -6,0 +6,0 @@ PackageJson = "package.json",

{
"name": "@metamask/snaps-utils",
"version": "0.26.2",
"version": "0.27.0",
"repository": {

@@ -55,3 +55,4 @@ "type": "git",

"@babel/types": "^7.18.7",
"@metamask/snaps-types": "^0.26.2",
"@metamask/providers": "^10.2.1",
"@metamask/snaps-ui": "^0.27.0",
"@metamask/utils": "^3.3.1",

@@ -58,0 +59,0 @@ "@noble/hashes": "^1.1.3",

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