jass-vue 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jass/vue/version.rb +1 -1
  3. data/lib/jass/vue.rb +1 -0
  4. data/vendor/node_modules/balanced-match/index.js +59 -0
  5. data/vendor/node_modules/balanced-match/package.json +49 -0
  6. data/vendor/node_modules/brace-expansion/index.js +201 -0
  7. data/vendor/node_modules/brace-expansion/package.json +47 -0
  8. data/vendor/node_modules/concat-map/index.js +13 -0
  9. data/vendor/node_modules/concat-map/package.json +43 -0
  10. data/vendor/node_modules/minimatch/minimatch.js +923 -0
  11. data/vendor/node_modules/minimatch/package.json +30 -0
  12. data/vendor/node_modules/rollup-plugin-replace/dist/rollup-plugin-replace.cjs.js +88 -0
  13. data/vendor/node_modules/rollup-plugin-replace/dist/rollup-plugin-replace.es.js +84 -0
  14. data/vendor/node_modules/rollup-plugin-replace/node_modules/estree-walker/dist/estree-walker.es.js +57 -0
  15. data/vendor/node_modules/rollup-plugin-replace/node_modules/estree-walker/dist/estree-walker.umd.js +68 -0
  16. data/vendor/node_modules/rollup-plugin-replace/node_modules/estree-walker/index.d.ts +17 -0
  17. data/vendor/node_modules/rollup-plugin-replace/node_modules/estree-walker/package.json +35 -0
  18. data/vendor/node_modules/rollup-plugin-replace/node_modules/estree-walker/src/estree-walker.js +51 -0
  19. data/vendor/node_modules/rollup-plugin-replace/node_modules/magic-string/dist/magic-string.cjs.js +1300 -0
  20. data/vendor/node_modules/rollup-plugin-replace/node_modules/magic-string/dist/magic-string.es.js +1296 -0
  21. data/vendor/node_modules/rollup-plugin-replace/node_modules/magic-string/dist/magic-string.umd.js +1352 -0
  22. data/vendor/node_modules/rollup-plugin-replace/node_modules/magic-string/index.d.ts +83 -0
  23. data/vendor/node_modules/rollup-plugin-replace/node_modules/magic-string/package.json +55 -0
  24. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +302 -0
  25. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/dist/pluginutils.es.js +292 -0
  26. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/package.json +46 -0
  27. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/src/addExtension.js +6 -0
  28. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/src/attachScopes.js +155 -0
  29. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/src/createFilter.js +33 -0
  30. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/src/dataToEsm.js +69 -0
  31. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/src/index.js +5 -0
  32. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/src/makeLegalIdentifier.js +15 -0
  33. data/vendor/node_modules/rollup-plugin-replace/node_modules/rollup-pluginutils/src/utils/ensureArray.js +5 -0
  34. data/vendor/node_modules/rollup-plugin-replace/package.json +43 -0
  35. data/vendor/node_modules/rollup-plugin-replace/src/index.js +80 -0
  36. data/vendor/package.json +1 -0
  37. data/vendor/yarn.lock +47 -1
  38. metadata +36 -4
@@ -0,0 +1,30 @@
1
+ {
2
+ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
3
+ "name": "minimatch",
4
+ "description": "a glob matcher in javascript",
5
+ "version": "3.0.4",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git://github.com/isaacs/minimatch.git"
9
+ },
10
+ "main": "minimatch.js",
11
+ "scripts": {
12
+ "test": "tap test/*.js --cov",
13
+ "preversion": "npm test",
14
+ "postversion": "npm publish",
15
+ "postpublish": "git push origin --all; git push origin --tags"
16
+ },
17
+ "engines": {
18
+ "node": "*"
19
+ },
20
+ "dependencies": {
21
+ "brace-expansion": "^1.1.7"
22
+ },
23
+ "devDependencies": {
24
+ "tap": "^10.3.2"
25
+ },
26
+ "license": "ISC",
27
+ "files": [
28
+ "minimatch.js"
29
+ ]
30
+ }
@@ -0,0 +1,88 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var MagicString = _interopDefault(require('magic-string'));
6
+ var rollupPluginutils = require('rollup-pluginutils');
7
+
8
+ function escape(str) {
9
+ return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
10
+ }
11
+
12
+ function functor(thing) {
13
+ if (typeof thing === 'function') { return thing; }
14
+ return function () { return thing; };
15
+ }
16
+
17
+ function longest(a, b) {
18
+ return b.length - a.length;
19
+ }
20
+
21
+ function replace(options) {
22
+ if ( options === void 0 ) options = {};
23
+
24
+ var filter = rollupPluginutils.createFilter(options.include, options.exclude);
25
+ var delimiters = options.delimiters;
26
+
27
+ var values;
28
+
29
+ if (options.values) {
30
+ values = options.values;
31
+ } else {
32
+ values = Object.assign({}, options);
33
+ delete values.delimiters;
34
+ delete values.include;
35
+ delete values.exclude;
36
+ }
37
+
38
+ var keys = Object.keys(values).sort(longest).map(escape);
39
+
40
+ var pattern = delimiters ?
41
+ new RegExp(
42
+ ((escape(delimiters[0])) + "(" + (keys.join('|')) + ")" + (escape(delimiters[1]))),
43
+ 'g'
44
+ ) :
45
+ new RegExp(
46
+ ("\\b(" + (keys.join('|')) + ")\\b"),
47
+ 'g'
48
+ );
49
+
50
+ // convert all values to functions
51
+ Object.keys(values).forEach(function (key) {
52
+ values[key] = functor(values[key]);
53
+ });
54
+
55
+ return {
56
+ name: 'replace',
57
+
58
+ transform: function transform(code, id) {
59
+ if (!filter(id)) { return null; }
60
+
61
+ var magicString = new MagicString(code);
62
+
63
+ var hasReplacements = false;
64
+ var match;
65
+ var start, end, replacement;
66
+
67
+ while ((match = pattern.exec(code))) {
68
+ hasReplacements = true;
69
+
70
+ start = match.index;
71
+ end = start + match[0].length;
72
+ replacement = String(values[match[1]](id));
73
+
74
+ magicString.overwrite(start, end, replacement);
75
+ }
76
+
77
+ if (!hasReplacements) { return null; }
78
+
79
+ var result = { code: magicString.toString() };
80
+ if (options.sourceMap !== false && options.sourcemap !== false)
81
+ { result.map = magicString.generateMap({ hires: true }); }
82
+
83
+ return result;
84
+ }
85
+ };
86
+ }
87
+
88
+ module.exports = replace;
@@ -0,0 +1,84 @@
1
+ import MagicString from 'magic-string';
2
+ import { createFilter } from 'rollup-pluginutils';
3
+
4
+ function escape(str) {
5
+ return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
6
+ }
7
+
8
+ function functor(thing) {
9
+ if (typeof thing === 'function') { return thing; }
10
+ return function () { return thing; };
11
+ }
12
+
13
+ function longest(a, b) {
14
+ return b.length - a.length;
15
+ }
16
+
17
+ function replace(options) {
18
+ if ( options === void 0 ) options = {};
19
+
20
+ var filter = createFilter(options.include, options.exclude);
21
+ var delimiters = options.delimiters;
22
+
23
+ var values;
24
+
25
+ if (options.values) {
26
+ values = options.values;
27
+ } else {
28
+ values = Object.assign({}, options);
29
+ delete values.delimiters;
30
+ delete values.include;
31
+ delete values.exclude;
32
+ }
33
+
34
+ var keys = Object.keys(values).sort(longest).map(escape);
35
+
36
+ var pattern = delimiters ?
37
+ new RegExp(
38
+ ((escape(delimiters[0])) + "(" + (keys.join('|')) + ")" + (escape(delimiters[1]))),
39
+ 'g'
40
+ ) :
41
+ new RegExp(
42
+ ("\\b(" + (keys.join('|')) + ")\\b"),
43
+ 'g'
44
+ );
45
+
46
+ // convert all values to functions
47
+ Object.keys(values).forEach(function (key) {
48
+ values[key] = functor(values[key]);
49
+ });
50
+
51
+ return {
52
+ name: 'replace',
53
+
54
+ transform: function transform(code, id) {
55
+ if (!filter(id)) { return null; }
56
+
57
+ var magicString = new MagicString(code);
58
+
59
+ var hasReplacements = false;
60
+ var match;
61
+ var start, end, replacement;
62
+
63
+ while ((match = pattern.exec(code))) {
64
+ hasReplacements = true;
65
+
66
+ start = match.index;
67
+ end = start + match[0].length;
68
+ replacement = String(values[match[1]](id));
69
+
70
+ magicString.overwrite(start, end, replacement);
71
+ }
72
+
73
+ if (!hasReplacements) { return null; }
74
+
75
+ var result = { code: magicString.toString() };
76
+ if (options.sourceMap !== false && options.sourcemap !== false)
77
+ { result.map = magicString.generateMap({ hires: true }); }
78
+
79
+ return result;
80
+ }
81
+ };
82
+ }
83
+
84
+ export default replace;
@@ -0,0 +1,57 @@
1
+ function walk ( ast, ref) {
2
+ var enter = ref.enter;
3
+ var leave = ref.leave;
4
+
5
+ visit( ast, null, enter, leave );
6
+ }
7
+
8
+ var shouldSkip = false;
9
+ var context = { skip: function () { return shouldSkip = true; } };
10
+
11
+ var childKeys = {};
12
+
13
+ var toString = Object.prototype.toString;
14
+
15
+ function isArray ( thing ) {
16
+ return toString.call( thing ) === '[object Array]';
17
+ }
18
+
19
+ function visit ( node, parent, enter, leave, prop, index ) {
20
+ if ( !node ) { return; }
21
+
22
+ if ( enter ) {
23
+ var _shouldSkip = shouldSkip;
24
+ shouldSkip = false;
25
+ enter.call( context, node, parent, prop, index );
26
+ var skipped = shouldSkip;
27
+ shouldSkip = _shouldSkip;
28
+
29
+ if ( skipped ) { return; }
30
+ }
31
+
32
+ var keys = childKeys[ node.type ] || (
33
+ childKeys[ node.type ] = Object.keys( node ).filter( function (key) { return typeof node[ key ] === 'object'; } )
34
+ );
35
+
36
+ for ( var i = 0; i < keys.length; i += 1 ) {
37
+ var key = keys[i];
38
+ var value = node[ key ];
39
+
40
+ if ( isArray( value ) ) {
41
+ for ( var j = 0; j < value.length; j += 1 ) {
42
+ visit( value[j], node, enter, leave, key, j );
43
+ }
44
+ }
45
+
46
+ else if ( value && value.type ) {
47
+ visit( value, node, enter, leave, key, null );
48
+ }
49
+ }
50
+
51
+ if ( leave ) {
52
+ leave( node, parent, prop, index );
53
+ }
54
+ }
55
+
56
+ export { walk, childKeys };
57
+ //# sourceMappingURL=estree-walker.es.js.map
@@ -0,0 +1,68 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (factory((global.estreeWalker = {})));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ function walk ( ast, ref) {
8
+ var enter = ref.enter;
9
+ var leave = ref.leave;
10
+
11
+ visit( ast, null, enter, leave );
12
+ }
13
+
14
+ var shouldSkip = false;
15
+ var context = { skip: function () { return shouldSkip = true; } };
16
+
17
+ var childKeys = {};
18
+
19
+ var toString = Object.prototype.toString;
20
+
21
+ function isArray ( thing ) {
22
+ return toString.call( thing ) === '[object Array]';
23
+ }
24
+
25
+ function visit ( node, parent, enter, leave, prop, index ) {
26
+ if ( !node ) { return; }
27
+
28
+ if ( enter ) {
29
+ var _shouldSkip = shouldSkip;
30
+ shouldSkip = false;
31
+ enter.call( context, node, parent, prop, index );
32
+ var skipped = shouldSkip;
33
+ shouldSkip = _shouldSkip;
34
+
35
+ if ( skipped ) { return; }
36
+ }
37
+
38
+ var keys = childKeys[ node.type ] || (
39
+ childKeys[ node.type ] = Object.keys( node ).filter( function (key) { return typeof node[ key ] === 'object'; } )
40
+ );
41
+
42
+ for ( var i = 0; i < keys.length; i += 1 ) {
43
+ var key = keys[i];
44
+ var value = node[ key ];
45
+
46
+ if ( isArray( value ) ) {
47
+ for ( var j = 0; j < value.length; j += 1 ) {
48
+ visit( value[j], node, enter, leave, key, j );
49
+ }
50
+ }
51
+
52
+ else if ( value && value.type ) {
53
+ visit( value, node, enter, leave, key, null );
54
+ }
55
+ }
56
+
57
+ if ( leave ) {
58
+ leave( node, parent, prop, index );
59
+ }
60
+ }
61
+
62
+ exports.walk = walk;
63
+ exports.childKeys = childKeys;
64
+
65
+ Object.defineProperty(exports, '__esModule', { value: true });
66
+
67
+ })));
68
+ //# sourceMappingURL=estree-walker.umd.js.map
@@ -0,0 +1,17 @@
1
+ declare module "estree-walker" {
2
+ export interface Node {
3
+ start: number;
4
+ end: number;
5
+ type: string;
6
+ [propName: string]: any;
7
+ }
8
+
9
+ export type WalkerListener = (node: Node, parent?: Node, prop?: string, index?: number) => void;
10
+
11
+ export interface WalkerOptions {
12
+ enter?: WalkerListener;
13
+ leave?: WalkerListener;
14
+ }
15
+
16
+ export function walk(ast: Node, options: WalkerOptions): void;
17
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "estree-walker",
3
+ "description": "Traverse an ESTree-compliant AST",
4
+ "version": "0.5.2",
5
+ "author": "Rich Harris",
6
+ "license": "MIT",
7
+ "typings": "index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/Rich-Harris/estree-walker"
11
+ },
12
+ "main": "dist/estree-walker.umd.js",
13
+ "module": "dist/estree-walker.es.js",
14
+ "jsnext:main": "dist/estree-walker.es.js",
15
+ "scripts": {
16
+ "prepublish": "npm run lint && npm test",
17
+ "build": "rollup -c",
18
+ "test": "mocha test/test.js --compilers js:buble/register",
19
+ "pretest": "npm run build",
20
+ "lint": "eslint src"
21
+ },
22
+ "devDependencies": {
23
+ "buble": "^0.15.2",
24
+ "eslint": "^4.5.0",
25
+ "mocha": "^3.5.0",
26
+ "rollup": "^0.48.0",
27
+ "rollup-plugin-buble": "^0.15.0"
28
+ },
29
+ "files": [
30
+ "src",
31
+ "dist",
32
+ "index.d.ts",
33
+ "README.md"
34
+ ]
35
+ }
@@ -0,0 +1,51 @@
1
+ export function walk ( ast, { enter, leave }) {
2
+ visit( ast, null, enter, leave );
3
+ }
4
+
5
+ let shouldSkip = false;
6
+ const context = { skip: () => shouldSkip = true };
7
+
8
+ export const childKeys = {};
9
+
10
+ const toString = Object.prototype.toString;
11
+
12
+ function isArray ( thing ) {
13
+ return toString.call( thing ) === '[object Array]';
14
+ }
15
+
16
+ function visit ( node, parent, enter, leave, prop, index ) {
17
+ if ( !node ) return;
18
+
19
+ if ( enter ) {
20
+ let _shouldSkip = shouldSkip;
21
+ shouldSkip = false;
22
+ enter.call( context, node, parent, prop, index );
23
+ const skipped = shouldSkip;
24
+ shouldSkip = _shouldSkip;
25
+
26
+ if ( skipped ) return;
27
+ }
28
+
29
+ const keys = childKeys[ node.type ] || (
30
+ childKeys[ node.type ] = Object.keys( node ).filter( key => typeof node[ key ] === 'object' )
31
+ );
32
+
33
+ for ( let i = 0; i < keys.length; i += 1 ) {
34
+ const key = keys[i];
35
+ const value = node[ key ];
36
+
37
+ if ( isArray( value ) ) {
38
+ for ( let j = 0; j < value.length; j += 1 ) {
39
+ visit( value[j], node, enter, leave, key, j );
40
+ }
41
+ }
42
+
43
+ else if ( value && value.type ) {
44
+ visit( value, node, enter, leave, key, null );
45
+ }
46
+ }
47
+
48
+ if ( leave ) {
49
+ leave( node, parent, prop, index );
50
+ }
51
+ }