LINXD-1029: Add relative path to simulator

This commit is contained in:
2019-11-07 15:11:05 +02:00
parent 2ae9e00260
commit c4b856da62
65 changed files with 2948 additions and 3565 deletions

18
node_modules/y18n/README.md generated vendored
View File

@ -4,6 +4,7 @@
[![Coverage Status][coveralls-image]][coveralls-url]
[![NPM version][npm-image]][npm-url]
[![js-standard-style][standard-image]][standard-url]
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
The bare-bones internationalization library used by yargs.
@ -23,6 +24,19 @@ output:
`my awesome string foo`
_using tagged template literals_
```js
var __ = require('y18n').__
var str = 'foo'
console.log(__`my awesome string ${str}`)
```
output:
`my awesome string foo`
_pluralization support:_
```js
@ -60,6 +74,10 @@ Create an instance of y18n with the config provided, options include:
Print a localized string, `%s` will be replaced with `arg`s.
This function can also be used as a tag for a template literal. You can use it
like this: <code>__&#96;hello ${'world'}&#96;</code>. This will be equivalent to
`__('hello %s', 'world')`.
### y18n.\_\_n(singularString, pluralString, count, arg, arg, arg)
Print a localized string with appropriate pluralization. If `%d` is provided

16
node_modules/y18n/index.js generated vendored
View File

@ -16,6 +16,9 @@ function Y18N (opts) {
}
Y18N.prototype.__ = function () {
if (typeof arguments[0] !== 'string') {
return this._taggedLiteral.apply(this, arguments)
}
var args = Array.prototype.slice.call(arguments)
var str = args.shift()
var cb = function () {} // start with noop.
@ -40,6 +43,19 @@ Y18N.prototype.__ = function () {
return util.format.apply(util, [this.cache[this.locale][str] || str].concat(args))
}
Y18N.prototype._taggedLiteral = function (parts) {
var args = arguments
var str = ''
parts.forEach(function (part, i) {
var arg = args[i + 1]
str += part
if (typeof arg !== 'undefined') {
str += '%s'
}
})
return this.__.apply(null, [str].concat([].slice.call(arguments, 1)))
}
Y18N.prototype._enqueueWrite = function (work) {
this.writeQueue.push(work)
if (this.writeQueue.length === 1) this._processWriteQueue()

34
node_modules/y18n/package.json generated vendored
View File

@ -1,27 +1,27 @@
{
"_from": "y18n@^3.2.0",
"_id": "y18n@3.2.1",
"_from": "y18n@^4.0.0",
"_id": "y18n@4.0.0",
"_inBundle": false,
"_integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=",
"_integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
"_location": "/y18n",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "y18n@^3.2.0",
"raw": "y18n@^4.0.0",
"name": "y18n",
"escapedName": "y18n",
"rawSpec": "^3.2.0",
"rawSpec": "^4.0.0",
"saveSpec": null,
"fetchSpec": "^3.2.0"
"fetchSpec": "^4.0.0"
},
"_requiredBy": [
"/yargs"
],
"_resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz",
"_shasum": "6d15fba884c08679c0d77e88e7759e811e07fa41",
"_spec": "y18n@^3.2.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/yargs",
"_resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
"_shasum": "95ef94f85ecc81d007c264e190a120f0a3c8566b",
"_spec": "y18n@^4.0.0",
"_where": "/home/sergiu/linx-simulator2/node_modules/yargs",
"author": {
"name": "Ben Coe",
"email": "ben@npmjs.com"
@ -33,12 +33,13 @@
"deprecated": false,
"description": "the bare-bones internationalization library used by yargs",
"devDependencies": {
"chai": "^3.4.1",
"coveralls": "^2.11.6",
"mocha": "^2.3.4",
"nyc": "^6.1.1",
"chai": "^4.0.1",
"coveralls": "^3.0.0",
"mocha": "^4.0.1",
"nyc": "^11.0.1",
"rimraf": "^2.5.0",
"standard": "^5.4.1"
"standard": "^10.0.0-beta.0",
"standard-version": "^4.2.0"
},
"files": [
"index.js"
@ -59,7 +60,8 @@
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"release": "standard-version",
"test": "nyc mocha"
},
"version": "3.2.1"
"version": "4.0.0"
}