@0xsequence/core
Advanced tools
Comparing version 0.0.0-20230920213211 to 0.0.0-20230922164806
@@ -1,2 +0,2 @@ | ||
export * from "./declarations/src/index"; | ||
export * from "../src/index"; | ||
//# sourceMappingURL=0xsequence-core.cjs.d.ts.map |
@@ -1,7 +0,16 @@ | ||
'use strict'; | ||
"use strict"; | ||
// this file might look strange and you might be wondering what it's for | ||
// it's lets you import your source files by importing this entrypoint | ||
// as you would import it if it was built with preconstruct build | ||
// this file is slightly different to some others though | ||
// it has a require hook which compiles your code with Babel | ||
// this means that you don't have to set up @babel/register or anything like that | ||
// but you can still require this module and it'll be compiled | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./0xsequence-core.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./0xsequence-core.cjs.dev.js"); | ||
} | ||
// this bit of code imports the require hook and registers it | ||
let unregister = require("../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../..", ".."); | ||
// this re-exports the source file | ||
module.exports = require("../src/index.ts"); | ||
unregister(); |
{ | ||
"name": "@0xsequence/core", | ||
"version": "0.0.0-20230920213211", | ||
"version": "0.0.0-20230922164806", | ||
"description": "core primitives for interacting with the sequence wallet contracts", | ||
@@ -23,3 +23,3 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/core", | ||
"dependencies": { | ||
"@0xsequence/abi": "0.0.0-20230920213211" | ||
"@0xsequence/abi": "0.0.0-20230922164806" | ||
}, | ||
@@ -26,0 +26,0 @@ "scripts": { |
import { ethers } from 'ethers' | ||
import { allVersions } from '..' | ||
import { DeployedWalletContext as context1 } from '../v1' | ||
import { DeployedWalletContext as context2 } from '../v2' | ||
export type WalletContext = { | ||
@@ -108,6 +105,1 @@ version: number | ||
} | ||
export const defaultContexts: VersionedContext = { | ||
1: context1, | ||
2: context2 | ||
} |
@@ -138,3 +138,3 @@ import { BigNumberish, BytesLike, ethers } from 'ethers' | ||
): { nonce?: ethers.BigNumberish; transaction: Transaction } { | ||
if (tx.to && tx.to !== ethers.constants.AddressZero) { | ||
if (tx.to) { | ||
return { | ||
@@ -141,0 +141,0 @@ nonce: tx.nonce, |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
118638
25
2695
1
+ Added@0xsequence/abi@0.0.0-20230922164806(transitive)
- Removed@0xsequence/abi@0.0.0-20230920213211(transitive)