jass 0.9.1 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/jass.rb +5 -0
  4. data/lib/jass/compiler.rb +5 -0
  5. data/lib/jass/plugin.rb +2 -1
  6. data/lib/jass/version.rb +1 -1
  7. data/vendor/node_modules/@types/estree/index.d.ts +4 -2
  8. data/vendor/node_modules/@types/estree/package.json +2 -2
  9. data/vendor/node_modules/acorn/bin/_acorn.js +12 -12
  10. data/vendor/node_modules/acorn/bin/run_test262.js +2 -3
  11. data/vendor/node_modules/acorn/bin/test262.whitelist +0 -5
  12. data/vendor/node_modules/acorn/dist/acorn.es.js +76 -68
  13. data/vendor/node_modules/acorn/dist/acorn.js +76 -68
  14. data/vendor/node_modules/acorn/dist/acorn_loose.es.js +42 -30
  15. data/vendor/node_modules/acorn/dist/acorn_loose.js +42 -30
  16. data/vendor/node_modules/acorn/dist/walk.es.js +47 -43
  17. data/vendor/node_modules/acorn/dist/walk.js +47 -43
  18. data/vendor/node_modules/acorn/package.json +9 -5
  19. data/vendor/node_modules/chalk/index.js.flow +93 -0
  20. data/vendor/node_modules/chalk/package.json +8 -3
  21. data/vendor/node_modules/color-convert/conversions.js +36 -29
  22. data/vendor/node_modules/color-convert/package.json +4 -4
  23. data/vendor/node_modules/estree-walker/index.d.ts +17 -0
  24. data/vendor/node_modules/estree-walker/package.json +2 -1
  25. data/vendor/node_modules/fill-range/index.js +2 -2
  26. data/vendor/node_modules/fill-range/package.json +24 -7
  27. data/vendor/node_modules/is-reference/node_modules/@types/estree/index.d.ts +546 -0
  28. data/vendor/node_modules/is-reference/node_modules/@types/estree/package.json +22 -0
  29. data/vendor/node_modules/math-random/browser.js +17 -0
  30. data/vendor/node_modules/math-random/node.js +13 -0
  31. data/vendor/node_modules/math-random/package.json +31 -0
  32. data/vendor/node_modules/math-random/test.js +26 -0
  33. data/vendor/node_modules/nodent-compiler/compiler.js +115 -11
  34. data/vendor/node_modules/nodent-compiler/{lib/output.js → output.js} +0 -0
  35. data/vendor/node_modules/nodent-compiler/package.json +8 -4
  36. data/vendor/node_modules/{nodent-compiler/lib → nodent-transform}/arboriculture.js +1340 -1107
  37. data/vendor/node_modules/nodent-transform/package.json +19 -0
  38. data/vendor/node_modules/path-parse/package.json +1 -1
  39. data/vendor/node_modules/pretty-ms/index.js +2 -1
  40. data/vendor/node_modules/pretty-ms/package.json +2 -3
  41. data/vendor/node_modules/randomatic/index.js +12 -2
  42. data/vendor/node_modules/randomatic/node_modules/is-number/index.js +6 -7
  43. data/vendor/node_modules/randomatic/node_modules/is-number/package.json +9 -16
  44. data/vendor/node_modules/randomatic/node_modules/kind-of/index.js +112 -102
  45. data/vendor/node_modules/randomatic/node_modules/kind-of/package.json +18 -20
  46. data/vendor/node_modules/randomatic/package.json +15 -13
  47. data/vendor/node_modules/repeat-element/index.js +1 -1
  48. data/vendor/node_modules/repeat-element/package.json +27 -22
  49. data/vendor/node_modules/resolve/lib/async.js +20 -17
  50. data/vendor/node_modules/resolve/lib/core.js +2 -2
  51. data/vendor/node_modules/resolve/lib/core.json +4 -1
  52. data/vendor/node_modules/resolve/lib/sync.js +52 -13
  53. data/vendor/node_modules/resolve/package.json +3 -3
  54. data/vendor/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.cjs.js +50 -12
  55. data/vendor/node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js +50 -12
  56. data/vendor/node_modules/rollup-plugin-commonjs/package.json +2 -2
  57. data/vendor/node_modules/rollup-plugin-commonjs/src/index.js +49 -11
  58. data/vendor/node_modules/rollup-plugin-commonjs/src/transform.js +1 -1
  59. data/vendor/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js +82 -85
  60. data/vendor/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js +82 -85
  61. data/vendor/node_modules/rollup-plugin-node-resolve/package.json +1 -1
  62. data/vendor/node_modules/rollup-plugin-node-resolve/src/index.js +81 -84
  63. data/vendor/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +81 -2
  64. data/vendor/node_modules/rollup-pluginutils/dist/pluginutils.es.js +81 -3
  65. data/vendor/node_modules/rollup-pluginutils/package.json +12 -6
  66. data/vendor/node_modules/rollup-pluginutils/src/attachScopes.js +10 -2
  67. data/vendor/node_modules/rollup-pluginutils/src/dataToEsm.js +69 -0
  68. data/vendor/node_modules/rollup-pluginutils/src/index.js +1 -0
  69. data/vendor/node_modules/supports-color/index.js +1 -5
  70. data/vendor/node_modules/supports-color/package.json +51 -51
  71. data/vendor/yarn.lock +65 -70
  72. metadata +16 -21
  73. data/vendor/node_modules/irregular-plurals/irregular-plurals.json +0 -146
  74. data/vendor/node_modules/irregular-plurals/package.json +0 -39
  75. data/vendor/node_modules/nodent-compiler/lib/parser.js +0 -291
  76. data/vendor/node_modules/path-parse/index.min.js +0 -1
  77. data/vendor/node_modules/path-parse/test.min.js +0 -1
  78. data/vendor/node_modules/plur/index.js +0 -20
  79. data/vendor/node_modules/plur/package.json +0 -42
  80. data/vendor/node_modules/randomatic/node_modules/is-number/node_modules/kind-of/index.js +0 -116
  81. data/vendor/node_modules/randomatic/node_modules/is-number/node_modules/kind-of/package.json +0 -90
  82. data/vendor/node_modules/rollup-pluginutils/dist/pluginutils.es6.js +0 -217
  83. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.es.js +0 -55
  84. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.es6.js +0 -59
  85. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js +0 -65
  86. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/package.json +0 -33
  87. data/vendor/node_modules/rollup-pluginutils/node_modules/estree-walker/src/estree-walker.js +0 -49
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "nodent-transform",
3
+ "version": "3.2.9",
4
+ "description": "AST transform and basic tools for nodent and nodent-compiler",
5
+ "main": "arboriculture.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/MatAtBread/nodent-transform.git"
12
+ },
13
+ "author": "matatbread",
14
+ "license": "MIT",
15
+ "bugs": {
16
+ "url": "https://github.com/MatAtBread/nodent-transform/issues"
17
+ },
18
+ "homepage": "https://github.com/MatAtBread/nodent-transform#readme"
19
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "path-parse",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Node.js path.parse() ponyfill",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
  const parseMs = require('parse-ms');
3
- const plur = require('plur');
3
+
4
+ const plur = (word, count) => count === 1 ? word : word + 's';
4
5
 
5
6
  module.exports = (ms, opts) => {
6
7
  if (!Number.isFinite(ms)) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pretty-ms",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/pretty-ms",
@@ -38,8 +38,7 @@
38
38
  "hrtime"
39
39
  ],
40
40
  "dependencies": {
41
- "parse-ms": "^1.0.0",
42
- "plur": "^2.1.2"
41
+ "parse-ms": "^1.0.0"
43
42
  },
44
43
  "devDependencies": {
45
44
  "ava": "*",
@@ -9,12 +9,14 @@
9
9
 
10
10
  var isNumber = require('is-number');
11
11
  var typeOf = require('kind-of');
12
+ var mathRandom = require('math-random');
12
13
 
13
14
  /**
14
15
  * Expose `randomatic`
15
16
  */
16
17
 
17
18
  module.exports = randomatic;
19
+ module.exports.isCrypto = !!mathRandom.cryptographic;
18
20
 
19
21
  /**
20
22
  * Available mask characters
@@ -51,7 +53,9 @@ function randomatic(pattern, length, options) {
51
53
  length = pattern.length;
52
54
 
53
55
  } else if (isNumber(pattern)) {
54
- options = {}; length = pattern; pattern = '*';
56
+ options = {};
57
+ length = pattern;
58
+ pattern = '*';
55
59
  }
56
60
  }
57
61
 
@@ -75,8 +79,14 @@ function randomatic(pattern, length, options) {
75
79
  if (pattern.indexOf('*') !== -1) mask += type.all;
76
80
  if (custom) mask += pattern;
77
81
 
82
+ // Characters to exclude
83
+ if (opts.exclude) {
84
+ var exclude = typeOf(opts.exclude) === 'string' ? opts.exclude : opts.exclude.join('');
85
+ mask = mask.replace(new RegExp('[' + exclude + ']+', 'g'), '');
86
+ }
87
+
78
88
  while (length--) {
79
- res += mask.charAt(parseInt(Math.random() * mask.length, 10));
89
+ res += mask.charAt(parseInt(mathRandom() * mask.length, 10));
80
90
  }
81
91
  return res;
82
92
  };
@@ -1,20 +1,19 @@
1
1
  /*!
2
2
  * is-number <https://github.com/jonschlinkert/is-number>
3
3
  *
4
- * Copyright (c) 2014-2015, Jon Schlinkert.
5
- * Licensed under the MIT License.
4
+ * Copyright (c) 2014-2017, Jon Schlinkert.
5
+ * Released under the MIT License.
6
6
  */
7
7
 
8
8
  'use strict';
9
9
 
10
- var typeOf = require('kind-of');
11
-
12
10
  module.exports = function isNumber(num) {
13
- var type = typeOf(num);
11
+ var type = typeof num;
14
12
 
15
- if (type === 'string') {
13
+ if (type === 'string' || num instanceof String) {
14
+ // an empty string would be coerced to true with the below logic
16
15
  if (!num.trim()) return false;
17
- } else if (type !== 'number') {
16
+ } else if (type !== 'number' && !(num instanceof Number)) {
18
17
  return false;
19
18
  }
20
19
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "is-number",
3
3
  "description": "Returns true if the value is a number. comprehensive tests.",
4
- "version": "3.0.0",
4
+ "version": "4.0.0",
5
5
  "homepage": "https://github.com/jonschlinkert/is-number",
6
6
  "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
7
  "contributors": [
8
- "Charlike Mike Reagent (http://www.tunnckocore.tk)",
9
- "Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)"
8
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)",
9
+ "tunnckoCore (https://i.am.charlike.online)"
10
10
  ],
11
11
  "repository": "jonschlinkert/is-number",
12
12
  "bugs": {
@@ -23,14 +23,11 @@
23
23
  "scripts": {
24
24
  "test": "mocha"
25
25
  },
26
- "dependencies": {
27
- "kind-of": "^3.0.2"
28
- },
29
26
  "devDependencies": {
30
- "benchmarked": "^0.2.5",
31
- "chalk": "^1.1.3",
32
- "gulp-format-md": "^0.1.10",
33
- "mocha": "^3.0.2"
27
+ "benchmarked": "^2.0.0",
28
+ "chalk": "^2.1.0",
29
+ "gulp-format-md": "^1.0.0",
30
+ "mocha": "^3.0.1"
34
31
  },
35
32
  "keywords": [
36
33
  "check",
@@ -74,10 +71,6 @@
74
71
  ],
75
72
  "lint": {
76
73
  "reflinks": true
77
- },
78
- "reflinks": [
79
- "verb",
80
- "verb-generate-readme"
81
- ]
74
+ }
82
75
  }
83
- }
76
+ }
@@ -1,119 +1,129 @@
1
- var isBuffer = require('is-buffer');
2
1
  var toString = Object.prototype.toString;
3
2
 
4
- /**
5
- * Get the native `typeof` a value.
6
- *
7
- * @param {*} `val`
8
- * @return {*} Native javascript type
9
- */
10
-
11
3
  module.exports = function kindOf(val) {
12
- // primitivies
13
- if (typeof val === 'undefined') {
14
- return 'undefined';
15
- }
16
- if (val === null) {
17
- return 'null';
18
- }
19
- if (val === true || val === false || val instanceof Boolean) {
20
- return 'boolean';
21
- }
22
- if (typeof val === 'string' || val instanceof String) {
23
- return 'string';
24
- }
25
- if (typeof val === 'number' || val instanceof Number) {
26
- return 'number';
27
- }
4
+ if (val === void 0) return 'undefined';
5
+ if (val === null) return 'null';
28
6
 
29
- // functions
30
- if (typeof val === 'function' || val instanceof Function) {
31
- return 'function';
7
+ var type = typeof val;
8
+ if (type === 'boolean') return 'boolean';
9
+ if (type === 'string') return 'string';
10
+ if (type === 'number') return 'number';
11
+ if (type === 'symbol') return 'symbol';
12
+ if (type === 'function') {
13
+ return isGeneratorFn(val) ? 'generatorfunction' : 'function';
32
14
  }
33
15
 
34
- // array
35
- if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {
36
- return 'array';
37
- }
16
+ if (isArray(val)) return 'array';
17
+ if (isBuffer(val)) return 'buffer';
18
+ if (isArguments(val)) return 'arguments';
19
+ if (isDate(val)) return 'date';
20
+ if (isError(val)) return 'error';
21
+ if (isRegexp(val)) return 'regexp';
38
22
 
39
- // check for instances of RegExp and Date before calling `toString`
40
- if (val instanceof RegExp) {
41
- return 'regexp';
42
- }
43
- if (val instanceof Date) {
44
- return 'date';
45
- }
23
+ switch (ctorName(val)) {
24
+ case 'Symbol': return 'symbol';
25
+ case 'Promise': return 'promise';
46
26
 
47
- // other objects
48
- var type = toString.call(val);
27
+ // Set, Map, WeakSet, WeakMap
28
+ case 'WeakMap': return 'weakmap';
29
+ case 'WeakSet': return 'weakset';
30
+ case 'Map': return 'map';
31
+ case 'Set': return 'set';
49
32
 
50
- if (type === '[object RegExp]') {
51
- return 'regexp';
52
- }
53
- if (type === '[object Date]') {
54
- return 'date';
55
- }
56
- if (type === '[object Arguments]') {
57
- return 'arguments';
58
- }
59
- if (type === '[object Error]') {
60
- return 'error';
61
- }
62
- if (type === '[object Promise]') {
63
- return 'promise';
64
- }
33
+ // 8-bit typed arrays
34
+ case 'Int8Array': return 'int8array';
35
+ case 'Uint8Array': return 'uint8array';
36
+ case 'Uint8ClampedArray': return 'uint8clampedarray';
65
37
 
66
- // buffer
67
- if (isBuffer(val)) {
68
- return 'buffer';
69
- }
38
+ // 16-bit typed arrays
39
+ case 'Int16Array': return 'int16array';
40
+ case 'Uint16Array': return 'uint16array';
70
41
 
71
- // es6: Map, WeakMap, Set, WeakSet
72
- if (type === '[object Set]') {
73
- return 'set';
74
- }
75
- if (type === '[object WeakSet]') {
76
- return 'weakset';
77
- }
78
- if (type === '[object Map]') {
79
- return 'map';
80
- }
81
- if (type === '[object WeakMap]') {
82
- return 'weakmap';
83
- }
84
- if (type === '[object Symbol]') {
85
- return 'symbol';
42
+ // 32-bit typed arrays
43
+ case 'Int32Array': return 'int32array';
44
+ case 'Uint32Array': return 'uint32array';
45
+ case 'Float32Array': return 'float32array';
46
+ case 'Float64Array': return 'float64array';
86
47
  }
87
48
 
88
- // typed arrays
89
- if (type === '[object Int8Array]') {
90
- return 'int8array';
49
+ if (isGeneratorObj(val)) {
50
+ return 'generator';
91
51
  }
92
- if (type === '[object Uint8Array]') {
93
- return 'uint8array';
94
- }
95
- if (type === '[object Uint8ClampedArray]') {
96
- return 'uint8clampedarray';
97
- }
98
- if (type === '[object Int16Array]') {
99
- return 'int16array';
100
- }
101
- if (type === '[object Uint16Array]') {
102
- return 'uint16array';
103
- }
104
- if (type === '[object Int32Array]') {
105
- return 'int32array';
106
- }
107
- if (type === '[object Uint32Array]') {
108
- return 'uint32array';
109
- }
110
- if (type === '[object Float32Array]') {
111
- return 'float32array';
112
- }
113
- if (type === '[object Float64Array]') {
114
- return 'float64array';
52
+
53
+ // Non-plain objects
54
+ type = toString.call(val);
55
+ switch (type) {
56
+ case '[object Object]': return 'object';
57
+ // iterators
58
+ case '[object Map Iterator]': return 'mapiterator';
59
+ case '[object Set Iterator]': return 'setiterator';
60
+ case '[object String Iterator]': return 'stringiterator';
61
+ case '[object Array Iterator]': return 'arrayiterator';
115
62
  }
116
63
 
117
- // must be a plain object
118
- return 'object';
64
+ // other
65
+ return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
119
66
  };
67
+
68
+ function ctorName(val) {
69
+ return val.constructor ? val.constructor.name : null;
70
+ }
71
+
72
+ function isArray(val) {
73
+ if (Array.isArray) return Array.isArray(val);
74
+ return val instanceof Array;
75
+ }
76
+
77
+ function isError(val) {
78
+ return val instanceof Error || (typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number');
79
+ }
80
+
81
+ function isDate(val) {
82
+ if (val instanceof Date) return true;
83
+ return typeof val.toDateString === 'function'
84
+ && typeof val.getDate === 'function'
85
+ && typeof val.setDate === 'function';
86
+ }
87
+
88
+ function isRegexp(val) {
89
+ if (val instanceof RegExp) return true;
90
+ return typeof val.flags === 'string'
91
+ && typeof val.ignoreCase === 'boolean'
92
+ && typeof val.multiline === 'boolean'
93
+ && typeof val.global === 'boolean';
94
+ }
95
+
96
+ function isGeneratorFn(name, val) {
97
+ return ctorName(name) === 'GeneratorFunction';
98
+ }
99
+
100
+ function isGeneratorObj(val) {
101
+ return typeof val.throw === 'function'
102
+ && typeof val.return === 'function'
103
+ && typeof val.next === 'function';
104
+ }
105
+
106
+ function isArguments(val) {
107
+ try {
108
+ if (typeof val.length === 'number' && typeof val.callee === 'function') {
109
+ return true;
110
+ }
111
+ } catch (err) {
112
+ if (err.message.indexOf('callee') !== -1) {
113
+ return true;
114
+ }
115
+ }
116
+ return false;
117
+ }
118
+
119
+ /**
120
+ * If you need to support Safari 5-7 (8-10 yr-old browser),
121
+ * take a look at https://github.com/feross/is-buffer
122
+ */
123
+
124
+ function isBuffer(val) {
125
+ if (val.constructor && typeof val.constructor.isBuffer === 'function') {
126
+ return val.constructor.isBuffer(val);
127
+ }
128
+ return false;
129
+ }
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "name": "kind-of",
3
3
  "description": "Get the native type of a value.",
4
- "version": "4.0.0",
4
+ "version": "6.0.2",
5
5
  "homepage": "https://github.com/jonschlinkert/kind-of",
6
6
  "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
7
  "contributors": [
8
8
  "David Fox-Powell (https://dtothefp.github.io/me)",
9
+ "James (https://twitter.com/aretecode)",
9
10
  "Jon Schlinkert (http://twitter.com/jonschlinkert)",
10
11
  "Ken Sheedlo (kensheedlo.com)",
11
12
  "laggingreflex (https://github.com/laggingreflex)",
12
13
  "Miguel Mota (https://miguelmota.com)",
13
- "Peter deHaan (http://about.me/peterdehaan)"
14
+ "Peter deHaan (http://about.me/peterdehaan)",
15
+ "tunnckoCore (https://i.am.charlike.online)"
14
16
  ],
15
17
  "repository": "jonschlinkert/kind-of",
16
18
  "bugs": {
@@ -28,18 +30,12 @@
28
30
  "test": "mocha",
29
31
  "prepublish": "browserify -o browser.js -e index.js -s index --bare"
30
32
  },
31
- "dependencies": {
32
- "is-buffer": "^1.1.5"
33
- },
34
33
  "devDependencies": {
35
- "ansi-bold": "^0.1.1",
36
- "benchmarked": "^1.1.1",
37
- "browserify": "^14.3.0",
38
- "glob": "^7.1.1",
39
- "gulp-format-md": "^0.1.12",
40
- "mocha": "^3.4.1",
41
- "type-of": "^2.0.1",
42
- "typeof": "^1.0.0"
34
+ "benchmarked": "^2.0.0",
35
+ "browserify": "^14.4.0",
36
+ "gulp-format-md": "^1.0.0",
37
+ "mocha": "^4.0.1",
38
+ "write": "^1.0.3"
43
39
  },
44
40
  "keywords": [
45
41
  "arguments",
@@ -65,13 +61,6 @@
65
61
  "types"
66
62
  ],
67
63
  "verb": {
68
- "related": {
69
- "list": [
70
- "is-glob",
71
- "is-number",
72
- "is-primitive"
73
- ]
74
- },
75
64
  "toc": false,
76
65
  "layout": "default",
77
66
  "tasks": [
@@ -83,7 +72,16 @@
83
72
  "lint": {
84
73
  "reflinks": true
85
74
  },
75
+ "related": {
76
+ "list": [
77
+ "is-glob",
78
+ "is-number",
79
+ "is-primitive"
80
+ ]
81
+ },
86
82
  "reflinks": [
83
+ "type-of",
84
+ "typeof",
87
85
  "verb"
88
86
  ]
89
87
  }