@saberhq/spl-token
Advanced tools
Comparing version 0.1.0-beta.8 to 0.1.0-beta.10
@@ -0,0 +0,0 @@ import JSBI from "jsbi"; |
@@ -0,0 +0,0 @@ export * from "./constants"; |
@@ -1,8 +0,6 @@ | ||
'use strict' | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./spl-token.cjs.production.min.js') | ||
} else { | ||
module.exports = require('./spl-token.cjs.development.js') | ||
} | ||
export * from "./constants"; | ||
export * from "./price"; | ||
export * from "./token"; | ||
export * from "./tokenAmount"; | ||
export * from "./utils"; | ||
//# sourceMappingURL=index.js.map |
@@ -0,0 +0,0 @@ import { Fraction, NumberFormat, Rounding } from "@ubeswap/token-math"; |
@@ -1,2 +0,3 @@ | ||
import { Cluster, PublicKey } from "@solana/web3.js"; | ||
import { Network } from "@saberhq/solana"; | ||
import { PublicKey } from "@solana/web3.js"; | ||
/** | ||
@@ -11,11 +12,18 @@ * Token information. | ||
decimals: number; | ||
cluster: Cluster; | ||
network: Network; | ||
} | ||
export declare const tokensEqual: (a: Token | undefined, b: Token | undefined) => boolean; | ||
/** | ||
* Map of network to Token | ||
*/ | ||
export declare type TokenMap = { | ||
[c in Cluster]: Token; | ||
[c in Network]: Token; | ||
}; | ||
/** | ||
* Creates a Token for all networks. | ||
*/ | ||
export declare const makeTokenForAllNetworks: (token: Omit<Token, "network">) => TokenMap; | ||
/** | ||
* Solana native token. | ||
*/ | ||
export declare const SOL: TokenMap; |
@@ -0,0 +0,0 @@ import { u64 } from "@solana/spl-token"; |
@@ -0,0 +0,0 @@ import { u64 } from "@solana/spl-token"; |
{ | ||
"name": "@saberhq/spl-token", | ||
"version": "0.1.0-beta.8", | ||
"version": "0.1.0-beta.10", | ||
"repository": "git@github.com:saber-hq/use-solana.git", | ||
@@ -8,22 +8,15 @@ "author": "Ian Macalinao <ian@saber.so>", | ||
"scripts": { | ||
"start": "tsdx watch", | ||
"build": "tsdx build", | ||
"build": "tsc", | ||
"clean": "rm -fr dist/", | ||
"test": "tsdx test --passWithNoTests", | ||
"test:ci": "tsdx test --passWithNoTests --ci --coverage --maxWorkers=2", | ||
"prepare": "tsdx build" | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"dependencies": { | ||
"@saberhq/solana": "^0.1.0-beta.10", | ||
"@solana/spl-token": "^0.1.5", | ||
"@solana/web3.js": "^1.18.0", | ||
"@types/react": "^17.0.11", | ||
"@types/react-dom": "^17.0.7", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
}, | ||
"dependencies": { | ||
"@ubeswap/token-math": "^0.1.3", | ||
"decimal.js": "^10.2.1", | ||
"jsbi": "^3.1.4", | ||
"tiny-invariant": "^1.1.0" | ||
"tiny-invariant": "^1.1.0", | ||
"tslib": "^2.3.0" | ||
}, | ||
@@ -37,7 +30,8 @@ "main": "dist/spl-token.cjs.production.min.js", | ||
"peerDependencies": { | ||
"@solana/spl-token": "^0.1.5", | ||
"@solana/web3.js": "^1.18.0", | ||
"bn.js": "*" | ||
}, | ||
"gitHead": "9339ac1701c9b332e7b4a8a798b6a11d722d5c4a" | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "3c6462e72cc77eb03115e3ddcdf4e30dd5f07ae2" | ||
} |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
21
2
1
33140
9
1
361
1
+ Added@solana/spl-token@^0.1.5
+ Added@solana/web3.js@^1.18.0
+ Addedtslib@^2.3.0
+ Added@saberhq/solana@0.1.0-beta.11(transitive)
+ Added@types/promise-retry@1.1.6(transitive)
+ Added@types/retry@0.12.5(transitive)
+ Addederr-code@2.0.3(transitive)
+ Addedpromise-retry@2.0.1(transitive)
+ Addedretry@0.12.0(transitive)