@depay/coinbase-wallet-sdk
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@depay/coinbase-wallet-sdk", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Coinbase Wallet SDK browser pre-built usable in rollup bundles.", | ||
@@ -26,4 +26,5 @@ "main": "dist/umd/index.js", | ||
"devDependencies": { | ||
"webpack": "^5.49.0", | ||
"webpack-cli": "^4.9.2" | ||
"@purtuga/esm-webpack-plugin": "^1.5.0", | ||
"webpack": "^4.46.0", | ||
"webpack-cli": "^4.9.1" | ||
}, | ||
@@ -30,0 +31,0 @@ "dependencies": { |
@@ -1,51 +0,31 @@ | ||
const webpack = require('webpack'); | ||
const path = require('path'); | ||
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin"); | ||
module.exports = [ | ||
{ | ||
target: "web", | ||
mode: "production", | ||
output: { | ||
filename: 'index.js', | ||
library: 'CoinbaseWalletSdk', | ||
libraryTarget: 'umd', | ||
path: path.resolve(__dirname, 'dist/umd') | ||
}, | ||
plugins: [ | ||
new webpack.ProvidePlugin({ | ||
Buffer: ['buffer', 'Buffer'], | ||
}), | ||
new webpack.DefinePlugin({ | ||
"process.env": { | ||
NODE_ENV: JSON.stringify("production"), | ||
LINK_API_URL: JSON.stringify("https://www.walletlink.org"), | ||
SDK_VERSION: JSON.stringify("3.0.5") | ||
} | ||
}) | ||
], | ||
const umd = { | ||
output: { | ||
filename: 'index.js', | ||
library: 'CoinbaseWalletSdk', | ||
libraryTarget: 'umd', | ||
path: path.resolve(__dirname, 'dist/umd') | ||
}, | ||
{ | ||
target: "web", | ||
mode: "production", | ||
experiments: { | ||
outputModule: true, | ||
}, | ||
output: { | ||
filename: 'index.js', | ||
libraryTarget: 'module', | ||
path: path.resolve(__dirname, 'dist/esm') | ||
}, | ||
plugins: [ | ||
new webpack.ProvidePlugin({ | ||
Buffer: ['buffer', 'Buffer'], | ||
}), | ||
new webpack.DefinePlugin({ | ||
"process.env": { | ||
NODE_ENV: JSON.stringify("production"), | ||
LINK_API_URL: JSON.stringify("https://www.walletlink.org"), | ||
SDK_VERSION: JSON.stringify("3.0.5") | ||
} | ||
}) | ||
], | ||
node: { | ||
Buffer: true | ||
} | ||
] | ||
} | ||
const esm = { | ||
output: { | ||
filename: 'index.js', | ||
library: 'CoinbaseWalletSdk', | ||
libraryTarget: 'var', | ||
path: path.resolve(__dirname, 'dist/esm') | ||
}, | ||
plugins: [ | ||
new EsmWebpackPlugin() | ||
], | ||
node: { | ||
Buffer: true | ||
} | ||
} | ||
module.exports = [umd, esm] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
0
2276
3
4
33