bump deps version, remove yarn

This commit is contained in:
JellyBrick
2023-08-29 16:53:39 +09:00
parent 2f73548701
commit c837f104f7
7 changed files with 11263 additions and 8338 deletions

View File

@ -1,24 +0,0 @@
diff --git a/index.js b/index.js
index c8f2fd4467c11b484fe654f7f250e2ba37e8100d..c9ae1ed3d3c7683b14dfe0eee801f5a07585d2aa 100644
--- a/index.js
+++ b/index.js
@@ -5,7 +5,16 @@ if (typeof electron === 'string') {
throw new TypeError('Not running in an Electron environment!');
}
-const isEnvSet = 'ELECTRON_IS_DEV' in process.env;
-const getFromEnv = Number.parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
+const isDev = () => {
+ if ('ELECTRON_IS_DEV' in process.env) {
+ return Number.parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
+ }
-module.exports = isEnvSet ? getFromEnv : !electron.app.isPackaged;
+ if (process.type === 'browser') {
+ return !electron.app.isPackaged;
+ }
+
+ return 'npm_package_name' in process.env;
+};
+
+module.exports = isDev();

View File

@ -1,9 +0,0 @@
/* eslint-disable */
//prettier-ignore
module.exports = {
name: "@yarnpkg/plugin-after-install",
factory: function (require) {
var plugin=(()=>{var g=Object.create,r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var I=t=>r(t,"__esModule",{value:!0});var i=t=>{if(typeof require!="undefined")return require(t);throw new Error('Dynamic require of "'+t+'" is not supported')};var h=(t,o)=>{for(var e in o)r(t,e,{get:o[e],enumerable:!0})},w=(t,o,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of C(o))!y.call(t,n)&&n!=="default"&&r(t,n,{get:()=>o[n],enumerable:!(e=x(o,n))||e.enumerable});return t},a=t=>w(I(r(t!=null?g(k(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var j={};h(j,{default:()=>b});var c=a(i("@yarnpkg/core")),m={afterInstall:{description:"Hook that will always run after install",type:c.SettingsType.STRING,default:""}};var u=a(i("clipanion")),d=a(i("@yarnpkg/core"));var p=a(i("@yarnpkg/shell")),l=async(t,o)=>{var f;let e=t.get("afterInstall"),n=!!((f=t.projectCwd)==null?void 0:f.endsWith(`dlx-${process.pid}`));return e&&!n?(o&&console.log("Running `afterInstall` hook..."),(0,p.execute)(e,[],{cwd:t.projectCwd||void 0})):0};var s=class extends u.Command{async execute(){let o=await d.Configuration.find(this.context.cwd,this.context.plugins);return l(o,!1)}};s.paths=[["after-install"]];var P={configuration:m,commands:[s],hooks:{afterAllInstalled:async t=>{if(await l(t.configuration,!0))throw new Error("The `afterInstall` hook failed, see output above.")}}},b=P;return j;})();
return plugin;
}
};

File diff suppressed because one or more lines are too long

View File

@ -1,9 +0,0 @@
afterInstall: yarn postinstall
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs
spec: "https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.3.1/bundles/@yarnpkg/plugin-after-install.js"
yarnPath: .yarn/releases/yarn-3.4.1.cjs

11232
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -84,45 +84,45 @@
"start": "electron .", "start": "electron .",
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .", "start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
"generate:package": "node utils/generate-package-json.js", "generate:package": "node utils/generate-package-json.js",
"postinstall": "yarn run plugins", "postinstall": "npm run plugins",
"clean": "del-cli dist", "clean": "del-cli dist",
"build": "yarn run clean && electron-builder --win --mac --linux -p never", "build": "npm run clean && electron-builder --win --mac --linux -p never",
"build:linux": "yarn run clean && electron-builder --linux -p never", "build:linux": "npm run clean && electron-builder --linux -p never",
"build:mac": "yarn run clean && electron-builder --mac dmg:x64 -p never", "build:mac": "npm run clean && electron-builder --mac dmg:x64 -p never",
"build:mac:arm64": "yarn run clean && electron-builder --mac dmg:arm64 -p never", "build:mac:arm64": "npm run clean && electron-builder --mac dmg:arm64 -p never",
"build:win": "yarn run clean && electron-builder --win -p never", "build:win": "npm run clean && electron-builder --win -p never",
"lint": "xo", "lint": "xo",
"changelog": "auto-changelog", "changelog": "auto-changelog",
"plugins": "yarn run plugin:adblocker && yarn run plugin:bypass-age-restrictions", "plugins": "npm run plugin:adblocker && npm run plugin:bypass-age-restrictions",
"plugin:adblocker": "del-cli plugins/adblocker/ad-blocker-engine.bin && node plugins/adblocker/blocker.js", "plugin:adblocker": "del-cli plugins/adblocker/ad-blocker-engine.bin && node plugins/adblocker/blocker.js",
"plugin:bypass-age-restrictions": "del-cli node_modules/simple-youtube-age-restriction-bypass/package.json && yarn run generate:package simple-youtube-age-restriction-bypass", "plugin:bypass-age-restrictions": "del-cli node_modules/simple-youtube-age-restriction-bypass/package.json && npm run generate:package simple-youtube-age-restriction-bypass",
"release:linux": "yarn run clean && electron-builder --linux -p always -c.snap.publish=github", "release:linux": "npm run clean && electron-builder --linux -p always -c.snap.publish=github",
"release:mac": "yarn run clean && electron-builder --mac -p always", "release:mac": "npm run clean && electron-builder --mac -p always",
"release:win": "yarn run clean && electron-builder --win -p always" "release:win": "npm run clean && electron-builder --win -p always"
}, },
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=16.0.0"
"npm": "Please use yarn instead"
}, },
"dependencies": { "dependencies": {
"@cliqz/adblocker-electron": "^1.26.5", "@cliqz/adblocker-electron": "^1.26.6",
"@ffmpeg/core": "^0.11.0", "@ffmpeg/core": "^0.12.2",
"@ffmpeg/ffmpeg": "^0.11.6", "@ffmpeg/ffmpeg": "^0.12.5",
"@foobar404/wave": "^2.0.4", "@foobar404/wave": "^2.0.4",
"@xhayper/discord-rpc": "^1.0.16", "@xhayper/discord-rpc": "^1.0.22",
"async-mutex": "^0.4.0", "async-mutex": "^0.4.0",
"browser-id3-writer": "^5.0.0", "browser-id3-writer": "^5.0.0",
"butterchurn": "^2.6.7", "butterchurn": "^2.6.7",
"butterchurn-presets": "^2.4.7", "butterchurn-presets": "^2.4.7",
"custom-electron-prompt": "^1.5.7", "custom-electron-prompt": "^1.5.7",
"custom-electron-titlebar": "^4.1.6", "custom-electron-titlebar": "^4.2.7",
"electron": "^26.1.0",
"electron-better-web-request": "^1.0.1", "electron-better-web-request": "^1.0.1",
"electron-debug": "^3.2.0", "electron-debug": "^3.2.0",
"electron-is": "^3.0.0", "electron-is": "^3.0.0",
"electron-localshortcut": "^3.2.1", "electron-localshortcut": "^3.2.1",
"electron-store": "^8.1.0", "electron-store": "^8.1.0",
"electron-unhandled": "^4.0.1", "electron-unhandled": "^4.0.1",
"electron-updater": "^5.3.0", "electron-updater": "^6.1.1",
"filenamify": "^4.3.0", "filenamify": "^4.3.0",
"howler": "^2.2.3", "howler": "^2.2.3",
"html-to-text": "^9.0.5", "html-to-text": "^9.0.5",
@ -130,27 +130,25 @@
"keyboardevents-areequal": "^0.2.2", "keyboardevents-areequal": "^0.2.2",
"md5": "^2.3.0", "md5": "^2.3.0",
"mpris-service": "^2.1.2", "mpris-service": "^2.1.2",
"node-fetch": "^2.6.9", "node-fetch": "^2.7.0",
"simple-youtube-age-restriction-bypass": "https://gitpkg.now.sh/api/pkg.tgz?url=zerodytrash/Simple-YouTube-Age-Restriction-Bypass&commit=v2.5.4", "simple-youtube-age-restriction-bypass": "zerodytrash/Simple-YouTube-Age-Restriction-Bypass@2.5.9",
"vudio": "^2.1.1", "vudio": "^2.1.1",
"youtubei.js": "^4.3.0", "youtubei.js": "^4.3.0",
"ytpl": "^2.3.0" "ytpl": "^2.3.0"
}, },
"resolutions": { "overrides": {
"xml2js": "^0.5.0", "xml2js": "^0.6.2",
"@electron/universal": "^1.3.4", "@electron/universal": "^1.4.1"
"electron-is-dev": "patch:electron-is-dev@npm%3A2.0.0#./.yarn/patches/electron-is-dev-npm-2.0.0-9d41637d91.patch"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.29.2", "@playwright/test": "^1.37.1",
"auto-changelog": "^2.4.0", "auto-changelog": "^2.4.0",
"del-cli": "^5.0.0", "del-cli": "^5.0.1",
"electron": "^22.3.6", "electron-builder": "^24.6.3",
"electron-builder": "^23.6.0",
"electron-devtools-installer": "^3.2.0", "electron-devtools-installer": "^3.2.0",
"node-gyp": "^9.3.1", "node-gyp": "^9.4.0",
"playwright": "^1.29.2", "playwright": "^1.37.1",
"xo": "^0.53.1" "xo": "^0.56.0"
}, },
"auto-changelog": { "auto-changelog": {
"hideCredit": true, "hideCredit": true,
@ -173,6 +171,5 @@
} }
] ]
} }
}, }
"packageManager": "yarn@3.4.1"
} }

7389
yarn.lock

File diff suppressed because it is too large Load Diff