fixes and admin data

This commit is contained in:
2021-02-09 18:30:17 +01:00
parent 9dd4d10396
commit 93bff025e9
73 changed files with 1638 additions and 2411 deletions

5
node_modules/pupa/index.js generated vendored
View File

@@ -10,7 +10,8 @@ module.exports = (template, data) => {
throw new TypeError(`Expected an \`object\` or \`Array\` in the second argument, got \`${typeof data}\``);
}
const doubleBraceRegex = /{{(.*?)}}/g;
// The regex tries to match either a number inside `{{ }}` or a valid JS identifier or key path.
const doubleBraceRegex = /{{(\d+|[a-z$_][a-z\d$_]*?(?:\.[a-z\d$_]*?)*?)}}/gi;
if (doubleBraceRegex.test(template)) {
template = template.replace(doubleBraceRegex, (_, key) => {
@@ -24,7 +25,7 @@ module.exports = (template, data) => {
});
}
const braceRegex = /{(.*?)}/g;
const braceRegex = /{(\d+|[a-z$_][a-z\d$_]*?(?:\.[a-z\d$_]*?)*?)}/gi;
return template.replace(braceRegex, (_, key) => {
let result = data;

128
node_modules/pupa/package.json generated vendored
View File

@@ -1,51 +1,79 @@
{
"name": "pupa",
"version": "2.0.1",
"description": "Simple micro templating",
"license": "MIT",
"repository": "sindresorhus/pupa",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"string",
"formatting",
"template",
"object",
"format",
"interpolate",
"interpolation",
"templating",
"expand",
"simple",
"replace",
"placeholders",
"values",
"transform",
"micro"
],
"dependencies": {
"escape-goat": "^2.0.0"
},
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
,"_resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz"
,"_integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA=="
,"_from": "pupa@2.0.1"
}
"_from": "pupa@^2.0.1",
"_id": "pupa@2.1.1",
"_inBundle": false,
"_integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==",
"_location": "/pupa",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "pupa@^2.0.1",
"name": "pupa",
"escapedName": "pupa",
"rawSpec": "^2.0.1",
"saveSpec": null,
"fetchSpec": "^2.0.1"
},
"_requiredBy": [
"/update-notifier"
],
"_resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz",
"_shasum": "f5e8fd4afc2c5d97828faa523549ed8744a20d62",
"_spec": "pupa@^2.0.1",
"_where": "C:\\Users\\Jonasz\\Desktop\\Menui\\menui_backend\\node_modules\\update-notifier",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/pupa/issues"
},
"bundleDependencies": false,
"dependencies": {
"escape-goat": "^2.0.0"
},
"deprecated": false,
"description": "Simple micro templating",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"engines": {
"node": ">=8"
},
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/sindresorhus/pupa#readme",
"keywords": [
"string",
"formatting",
"template",
"object",
"format",
"interpolate",
"interpolation",
"templating",
"expand",
"simple",
"replace",
"placeholders",
"values",
"transform",
"micro"
],
"license": "MIT",
"name": "pupa",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/pupa.git"
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "2.1.1"
}