mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
bump deps version, remove yarn
This commit is contained in:
@ -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();
|
||||
@ -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;
|
||||
}
|
||||
};
|
||||
873
.yarn/releases/yarn-3.4.1.cjs
vendored
873
.yarn/releases/yarn-3.4.1.cjs
vendored
File diff suppressed because one or more lines are too long
@ -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
11232
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
65
package.json
65
package.json
@ -84,45 +84,45 @@
|
||||
"start": "electron .",
|
||||
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
|
||||
"generate:package": "node utils/generate-package-json.js",
|
||||
"postinstall": "yarn run plugins",
|
||||
"postinstall": "npm run plugins",
|
||||
"clean": "del-cli dist",
|
||||
"build": "yarn run clean && electron-builder --win --mac --linux -p never",
|
||||
"build:linux": "yarn run clean && electron-builder --linux -p never",
|
||||
"build:mac": "yarn run clean && electron-builder --mac dmg:x64 -p never",
|
||||
"build:mac:arm64": "yarn run clean && electron-builder --mac dmg:arm64 -p never",
|
||||
"build:win": "yarn run clean && electron-builder --win -p never",
|
||||
"build": "npm run clean && electron-builder --win --mac --linux -p never",
|
||||
"build:linux": "npm run clean && electron-builder --linux -p never",
|
||||
"build:mac": "npm run clean && electron-builder --mac dmg:x64 -p never",
|
||||
"build:mac:arm64": "npm run clean && electron-builder --mac dmg:arm64 -p never",
|
||||
"build:win": "npm run clean && electron-builder --win -p never",
|
||||
"lint": "xo",
|
||||
"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:bypass-age-restrictions": "del-cli node_modules/simple-youtube-age-restriction-bypass/package.json && yarn run generate:package simple-youtube-age-restriction-bypass",
|
||||
"release:linux": "yarn run clean && electron-builder --linux -p always -c.snap.publish=github",
|
||||
"release:mac": "yarn run clean && electron-builder --mac -p always",
|
||||
"release:win": "yarn run clean && electron-builder --win -p always"
|
||||
"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": "npm run clean && electron-builder --linux -p always -c.snap.publish=github",
|
||||
"release:mac": "npm run clean && electron-builder --mac -p always",
|
||||
"release:win": "npm run clean && electron-builder --win -p always"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.0.0",
|
||||
"npm": "Please use yarn instead"
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cliqz/adblocker-electron": "^1.26.5",
|
||||
"@ffmpeg/core": "^0.11.0",
|
||||
"@ffmpeg/ffmpeg": "^0.11.6",
|
||||
"@cliqz/adblocker-electron": "^1.26.6",
|
||||
"@ffmpeg/core": "^0.12.2",
|
||||
"@ffmpeg/ffmpeg": "^0.12.5",
|
||||
"@foobar404/wave": "^2.0.4",
|
||||
"@xhayper/discord-rpc": "^1.0.16",
|
||||
"@xhayper/discord-rpc": "^1.0.22",
|
||||
"async-mutex": "^0.4.0",
|
||||
"browser-id3-writer": "^5.0.0",
|
||||
"butterchurn": "^2.6.7",
|
||||
"butterchurn-presets": "^2.4.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-debug": "^3.2.0",
|
||||
"electron-is": "^3.0.0",
|
||||
"electron-localshortcut": "^3.2.1",
|
||||
"electron-store": "^8.1.0",
|
||||
"electron-unhandled": "^4.0.1",
|
||||
"electron-updater": "^5.3.0",
|
||||
"electron-updater": "^6.1.1",
|
||||
"filenamify": "^4.3.0",
|
||||
"howler": "^2.2.3",
|
||||
"html-to-text": "^9.0.5",
|
||||
@ -130,27 +130,25 @@
|
||||
"keyboardevents-areequal": "^0.2.2",
|
||||
"md5": "^2.3.0",
|
||||
"mpris-service": "^2.1.2",
|
||||
"node-fetch": "^2.6.9",
|
||||
"simple-youtube-age-restriction-bypass": "https://gitpkg.now.sh/api/pkg.tgz?url=zerodytrash/Simple-YouTube-Age-Restriction-Bypass&commit=v2.5.4",
|
||||
"node-fetch": "^2.7.0",
|
||||
"simple-youtube-age-restriction-bypass": "zerodytrash/Simple-YouTube-Age-Restriction-Bypass@2.5.9",
|
||||
"vudio": "^2.1.1",
|
||||
"youtubei.js": "^4.3.0",
|
||||
"ytpl": "^2.3.0"
|
||||
},
|
||||
"resolutions": {
|
||||
"xml2js": "^0.5.0",
|
||||
"@electron/universal": "^1.3.4",
|
||||
"electron-is-dev": "patch:electron-is-dev@npm%3A2.0.0#./.yarn/patches/electron-is-dev-npm-2.0.0-9d41637d91.patch"
|
||||
"overrides": {
|
||||
"xml2js": "^0.6.2",
|
||||
"@electron/universal": "^1.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.29.2",
|
||||
"@playwright/test": "^1.37.1",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"del-cli": "^5.0.0",
|
||||
"electron": "^22.3.6",
|
||||
"electron-builder": "^23.6.0",
|
||||
"del-cli": "^5.0.1",
|
||||
"electron-builder": "^24.6.3",
|
||||
"electron-devtools-installer": "^3.2.0",
|
||||
"node-gyp": "^9.3.1",
|
||||
"playwright": "^1.29.2",
|
||||
"xo": "^0.53.1"
|
||||
"node-gyp": "^9.4.0",
|
||||
"playwright": "^1.37.1",
|
||||
"xo": "^0.56.0"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"hideCredit": true,
|
||||
@ -173,6 +171,5 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@3.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user