mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-06-19 00:41:05 +00:00
v0.62.18: Firefox AMO compliance and new extension ID
- New Firefox extension ID for AMO - Fixed data_collection_permissions for Mozilla compliance - Updated webpack config for ES2022 target - Added firefox-postprocess.sh script - Bumped all packages to 0.62.18
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@pezkuwi/api": "^16.5.9",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@pezkuwi/extension-inject": "workspace:*",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@metamask/detect-provider": "^2.0.0",
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@pezkuwi/extension-inject": "workspace:*",
|
||||
"@pezkuwi/extension-inject": "0.62.14",
|
||||
"@pezkuwi/util": "^14.0.11",
|
||||
"@pezkuwi/util-crypto": "^14.0.11",
|
||||
"tslib": "^2.8.1"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"sideEffects": true,
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@pezkuwi/api": "^16.5.9",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"sinon-chrome": "^3.0.1",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"sideEffects": true,
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
||||
|
||||
@@ -16,8 +16,11 @@
|
||||
},
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "{7e3ce1f0-15fb-4fb1-99c6-25774749ec6d}",
|
||||
"strict_min_version": "108.0.2"
|
||||
"id": "{7cee9c4f-5fc7-4165-b4f8-f18e79fe9264}",
|
||||
"strict_min_version": "142.0",
|
||||
"data_collection_permissions": {
|
||||
"required": ["none"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"content_scripts": [{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "0.62.16",
|
||||
"version": "0.62.18",
|
||||
"scripts": {
|
||||
"pezkuwi-exec-webpack": "pezkuwi-exec-webpack"
|
||||
},
|
||||
|
||||
@@ -26,8 +26,25 @@ module.exports = (entry, alias = {}) => ({
|
||||
context: __dirname,
|
||||
devtool: false,
|
||||
entry,
|
||||
target: ['web', 'es2022'],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'string-replace-loader',
|
||||
options: {
|
||||
multiple: [
|
||||
{
|
||||
search: /Function\s*\(\s*["']return this["']\s*\)\s*\(\s*\)/g,
|
||||
replace: 'globalThis'
|
||||
},
|
||||
{
|
||||
search: /Function\s*\(\s*["']return this["']\s*\)/g,
|
||||
replace: '(function(){return globalThis})'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
exclude: /(node_modules)/,
|
||||
test: /\.(ts|tsx)$/,
|
||||
@@ -59,12 +76,40 @@ module.exports = (entry, alias = {}) => ({
|
||||
output: {
|
||||
chunkFilename: '[name].js',
|
||||
filename: '[name].js',
|
||||
globalObject: '(typeof self !== \'undefined\' ? self : this)',
|
||||
path: path.join(__dirname, 'build')
|
||||
globalObject: 'globalThis',
|
||||
path: path.join(__dirname, 'build'),
|
||||
environment: {
|
||||
arrowFunction: true,
|
||||
bigIntLiteral: true,
|
||||
const: true,
|
||||
destructuring: true,
|
||||
dynamicImport: true,
|
||||
forOf: true,
|
||||
module: true,
|
||||
optionalChaining: true,
|
||||
templateLiteral: true
|
||||
}
|
||||
},
|
||||
performance: {
|
||||
hints: false
|
||||
},
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new (require('terser-webpack-plugin'))({
|
||||
terserOptions: {
|
||||
compress: {
|
||||
evaluate: false,
|
||||
unsafe_Function: false
|
||||
},
|
||||
mangle: true,
|
||||
format: {
|
||||
comments: false
|
||||
}
|
||||
},
|
||||
extractComments: false
|
||||
})
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
Buffer: ['buffer', 'Buffer'],
|
||||
|
||||
Reference in New Issue
Block a user