Transition to monorepo on a new Dev branch

This commit is contained in:
2023-02-22 10:29:46 +01:00
parent 8436f03ec7
commit 3a483dc0ef
3712 changed files with 751 additions and 11 deletions

14
App/Source/node_modules/is-expression/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,14 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
logs
results
npm-debug.log
node_modules
coverage

17
App/Source/node_modules/is-expression/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,17 @@
language: node_js
sudo: false
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
after_success:
- npm run coverage
- npm i coveralls
- cat ./coverage/lcov.info | coveralls
notifications:
email:
on_success: never

19
App/Source/node_modules/is-expression/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,19 @@
Copyright (c) 2015 Tiancheng “Timothy” Gu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

45
App/Source/node_modules/is-expression/index.js generated vendored Normal file
View File

@@ -0,0 +1,45 @@
'use strict';
var acorn = require('acorn');
var objectAssign = require('object-assign');
module.exports = isExpression;
var DEFAULT_OPTIONS = {
throw: false,
strict: false,
lineComment: false
};
function isExpression(src, options) {
options = objectAssign({}, DEFAULT_OPTIONS, options);
try {
var parser = new acorn.Parser(options, src, 0);
if (options.strict) {
parser.strict = true;
}
if (!options.lineComment) {
parser.skipLineComment = function (startSkip) {
this.raise(this.pos, 'Line comments not allowed in an expression');
};
}
parser.nextToken();
parser.parseExpression();
if (parser.type !== acorn.tokTypes.eof) {
parser.unexpected();
}
} catch (ex) {
if (!options.throw) {
return false;
}
throw ex;
}
return true;
}

27
App/Source/node_modules/is-expression/package.json generated vendored Normal file
View File

@@ -0,0 +1,27 @@
{
"name": "is-expression",
"version": "3.0.0",
"description": "Check if a string is a valid JavaScript expression",
"keywords": [
"javascript",
"expression"
],
"dependencies": {
"acorn": "~4.0.2",
"object-assign": "^4.0.1"
},
"devDependencies": {
"istanbul": "*",
"testit": "^2.0.2"
},
"scripts": {
"test": "node test && npm run coverage",
"coverage": "istanbul cover test.js"
},
"repository": {
"type": "git",
"url": "https://github.com/pugjs/is-expression.git"
},
"author": "Timothy Gu <timothygu99@gmail.com>",
"license": "MIT"
}

48
App/Source/node_modules/is-expression/test.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
'use strict';
var assert = require('assert');
var testit = require('testit');
var isExpression = require('./');
function passes(src, options) {
testit(JSON.stringify(src, options), function () {
options = options || {};
assert(isExpression(src, options));
});
}
testit('passes', function () {
passes('myVar');
passes('["an", "array", "\'s"].indexOf("index")');
passes('\npublic');
passes('abc // my comment', {lineComment: true});
passes('() => a');
passes('function (a = "default") {"use strict";}', {ecmaVersion: 6});
});
function error(src, line, col, options) {
testit(JSON.stringify(src), function () {
options = options || {};
assert(!isExpression(src, options));
options.throw = true;
assert.throws(function () {
isExpression(src, options);
}, function (err) {
assert.equal(err.loc.line, line);
assert.equal(err.loc.column, col);
assert(err.message);
return true;
});
});
}
testit('fails', function () {
error('', 1, 0);
error('var', 1, 0);
error('weird error', 1, 6);
error('asdf}', 1, 4);
error('\npublic', 2, 0, {strict: true});
error('abc // my comment', 1, 4);
error('() => a', 1, 1, {ecmaVersion: 5});
error('function (a = "default") {"use strict";}', 1, 26);
});