tgui 5.0.1 earlyport (#8189)

This commit is contained in:
Selis
2024-04-14 02:35:46 +02:00
committed by GitHub
parent a3d46d7ff6
commit d59cb636d0
29 changed files with 4269 additions and 4180 deletions

View File

@@ -6,6 +6,7 @@
/yarn.lock
/.pnp.*
.swcrc
/docs
/public
/packages/tgui-polyfill

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

893
tgui/.yarn/releases/yarn-4.1.1.cjs vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire, createRequireFromPath } = require(`module`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
@@ -17,4 +17,4 @@ if (existsSync(absPnpApiPath)) {
}
// Defer to the real eslint/bin/eslint.js your application uses
module.exports = absRequire(`eslint`);
module.exports = absRequire(`eslint/bin/eslint.js`);

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
}
}
// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = absRequire(`eslint/use-at-your-own-risk`);

View File

@@ -1,9 +1,14 @@
{
"name": "eslint",
"version": "7.32.0-sdk",
"version": "8.57.0-sdk",
"main": "./lib/api.js",
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire, createRequireFromPath } = require(`module`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = '../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {

View File

@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "3.1.0-sdk",
"version": "3.2.5-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire, createRequireFromPath } = require(`module`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const moduleWrapper = (tsserver) => {
if (!process.versions.pnp) {
@@ -24,7 +24,7 @@ const moduleWrapper = (tsserver) => {
const dependencyTreeRoots = new Set(
pnpApi.getDependencyTreeRoots().map((locator) => {
return `${locator.name}@${locator.reference}`;
})
}),
);
// VSCode sends the zip paths to TS using the "zip://" prefix, that TS
@@ -168,7 +168,7 @@ const moduleWrapper = (tsserver) => {
{
return str.replace(
/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/,
process.platform === `win32` ? `` : `/`
process.platform === `win32` ? `` : `/`,
);
}
break;
@@ -215,7 +215,7 @@ const moduleWrapper = (tsserver) => {
const [, major, minor] = (
process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,
) ?? []
).map(Number);
@@ -235,14 +235,14 @@ const moduleWrapper = (tsserver) => {
parsedMessage,
(key, value) => {
return typeof value === 'string' ? fromEditorPath(value) : value;
}
},
);
return originalOnMessage.call(
this,
isStringMessage
? processedMessageJSON
: JSON.parse(processedMessageJSON)
: JSON.parse(processedMessageJSON),
);
},
@@ -252,8 +252,8 @@ const moduleWrapper = (tsserver) => {
JSON.parse(
JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})
)
}),
),
);
},
});

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire, createRequireFromPath } = require(`module`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const moduleWrapper = (tsserver) => {
if (!process.versions.pnp) {
@@ -24,7 +24,7 @@ const moduleWrapper = (tsserver) => {
const dependencyTreeRoots = new Set(
pnpApi.getDependencyTreeRoots().map((locator) => {
return `${locator.name}@${locator.reference}`;
})
}),
);
// VSCode sends the zip paths to TS using the "zip://" prefix, that TS
@@ -168,7 +168,7 @@ const moduleWrapper = (tsserver) => {
{
return str.replace(
/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/,
process.platform === `win32` ? `` : `/`
process.platform === `win32` ? `` : `/`,
);
}
break;
@@ -215,7 +215,7 @@ const moduleWrapper = (tsserver) => {
const [, major, minor] = (
process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,
) ?? []
).map(Number);
@@ -235,14 +235,14 @@ const moduleWrapper = (tsserver) => {
parsedMessage,
(key, value) => {
return typeof value === 'string' ? fromEditorPath(value) : value;
}
},
);
return originalOnMessage.call(
this,
isStringMessage
? processedMessageJSON
: JSON.parse(processedMessageJSON)
: JSON.parse(processedMessageJSON),
);
},
@@ -252,8 +252,8 @@ const moduleWrapper = (tsserver) => {
JSON.parse(
JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})
)
}),
),
);
},
});

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env node
const { existsSync } = require(`fs`);
const { createRequire, createRequireFromPath } = require(`module`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);
const relPnpApiPath = '../../../../.pnp.cjs';
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {

View File

@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "4.3.5-sdk",
"version": "5.4.3-sdk",
"main": "./lib/typescript.js",
"type": "commonjs",
"bin": {

View File

@@ -1,3 +1,7 @@
compressionLevel: 0
enableGlobalCache: false
enableScripts: false
logFilters:
@@ -6,14 +10,8 @@ logFilters:
- code: YN0062
level: discard
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
pnpEnableEsmLoader: false
preferAggregateCacheInfo: true
preferInteractive: true
yarnPath: .yarn/releases/yarn-3.3.1.cjs
yarnPath: .yarn/releases/yarn-4.1.1.cjs

View File

@@ -1,8 +1,8 @@
{
"private": true,
"name": "tgui-workspace",
"version": "5.0.0",
"packageManager": "yarn@3.3.1",
"version": "5.0.1",
"packageManager": "yarn@4.1.1",
"workspaces": [
"packages/*"
],
@@ -22,36 +22,35 @@
"tgui:eslint-fix": "eslint --fix packages --ext .js,.cjs,.ts,.tsx"
},
"dependencies": {
"@swc/core": "^1.3.100",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.10",
"@types/jsdom": "^21.1.6",
"@types/node": "^14.x",
"@types/webpack": "^5.28.5",
"@swc/core": "^1.4.11",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.3",
"@types/webpack-env": "^1.18.4",
"@typescript-eslint/parser": "^6.14.0",
"css-loader": "^6.8.1",
"esbuild-loader": "^4.0.2",
"eslint": "^8.56.0",
"@typescript-eslint/parser": "^7.5.0",
"@typescript-eslint/utils": "^7.5.0",
"css-loader": "^6.10.0",
"esbuild-loader": "^4.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-simple-import-sort": "^12.0.0",
"eslint-plugin-sonarjs": "^0.25.0",
"eslint-plugin-unused-imports": "^3.1.0",
"file-loader": "^6.2.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^22.1.0",
"mini-css-extract-plugin": "^2.7.6",
"prettier": "^3.1.0",
"sass": "^1.69.5",
"sass-loader": "^13.3.2",
"style-loader": "^3.3.3",
"swc-loader": "^0.2.3",
"typescript": "^4.9.4",
"mini-css-extract-plugin": "^2.8.1",
"prettier": "^3.2.5",
"sass": "^1.72.0",
"sass-loader": "^14.1.1",
"style-loader": "^3.3.4",
"swc-loader": "^0.2.6",
"typescript": "^5.4.3",
"url-loader": "^4.1.1",
"webpack": "^5.89.0",
"webpack": "^5.91.0",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4"
}

View File

@@ -1,5 +1,5 @@
{
"private": true,
"name": "common",
"version": "4.4.1"
"version": "4.3.1"
}

View File

@@ -1,7 +1,7 @@
{
"private": true,
"name": "tgui-bench",
"version": "5.0.0",
"version": "5.0.1",
"dependencies": {
"@fastify/static": "^6.12.0",
"common": "workspace:*",

View File

@@ -1,13 +1,13 @@
{
"private": true,
"name": "tgui-dev-server",
"version": "5.0.0",
"version": "5.0.1",
"type": "module",
"dependencies": {
"axios": "^1.6.2",
"glob": "^7.2.0",
"axios": "^1.6.8",
"glob": "^7.2.3",
"source-map": "^0.7.4",
"stacktrace-parser": "^0.1.10",
"ws": "^8.14.2"
"ws": "^8.16.0"
}
}

View File

@@ -20,6 +20,7 @@ export const resolveGlob = (...sections) => {
const unsafePaths = globPkg.sync(path.resolve(...sections), {
strict: false,
silent: true,
windowsPathsNoEscape: true,
});
const safePaths = [];
for (let path of unsafePaths) {

View File

@@ -1,12 +1,12 @@
{
"private": true,
"name": "tgui-panel",
"version": "5.0.0",
"version": "5.0.1",
"dependencies": {
"@types/node": "^14.x",
"@types/react": "^18.2.42",
"@types/node": "^20.12.3",
"@types/react": "^18.2.74",
"common": "workspace:*",
"dompurify": "^2.4.4",
"dompurify": "^2.4.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tgui": "workspace:*",

View File

@@ -1,16 +1,16 @@
{
"private": true,
"name": "tgui-polyfill",
"version": "5.0.0",
"version": "5.0.1",
"scripts": {
"tgui-polyfill:build": "terser 1-misc.js -f ascii_only,comments=false -o ../../public/tgui-polyfill.min.js"
},
"dependencies": {
"core-js": "^3.33.3",
"regenerator-runtime": "^0.14.0",
"core-js": "^3.36.1",
"regenerator-runtime": "^0.14.1",
"unfetch": "^5.0.0"
},
"devDependencies": {
"terser": "^5.24.0"
"terser": "^5.30.2"
}
}

View File

@@ -1,18 +1,18 @@
{
"private": true,
"name": "tgui",
"version": "5.0.0",
"version": "5.0.1",
"dependencies": {
"@popperjs/core": "^2.11.8",
"@types/marked": "^4.0.8",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@types/marked": "4.3.2",
"@types/react": "^18.2.74",
"common": "workspace:*",
"dateformat": "^4.6.2",
"dompurify": "^2.4.4",
"dateformat": "^4.6.3",
"dompurify": "^2.4.9",
"highlight.js": "^11.9.0",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"marked": "^4.2.12",
"marked": "^4.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-popper": "^2.3.0",

View File

@@ -7,7 +7,12 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": false,
"jsx": "preserve",
"lib": ["DOM", "DOM.Iterable", "ESNext", "ScriptHost"],
"lib": [
"DOM",
"DOM.Iterable",
"ESNext",
"ScriptHost"
],
"module": "ESNext",
"moduleResolution": "Node",
"noEmit": true,
@@ -17,5 +22,8 @@
"strictNullChecks": true,
"target": "ES5"
},
"include": ["./*.d.ts", "./packages"]
"include": [
"./*.d.ts",
"./packages"
]
}

File diff suppressed because it is too large Load Diff