trackler 2.1.0.29 → 2.1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/common/exercises/twelve-days/description.md +1 -1
- data/lib/trackler/version.rb +1 -1
- data/tracks/delphi/SETUP.md +1 -1
- data/tracks/ecmascript/Makefile +4 -3
- data/tracks/ecmascript/config.json +0 -65
- data/tracks/ecmascript/exercises/accumulate/package.json +6 -0
- data/tracks/ecmascript/exercises/acronym/package.json +6 -0
- data/tracks/ecmascript/exercises/all-your-base/package.json +6 -0
- data/tracks/ecmascript/exercises/allergies/package.json +6 -0
- data/tracks/ecmascript/exercises/anagram/package.json +6 -0
- data/tracks/ecmascript/exercises/atbash-cipher/package.json +6 -0
- data/tracks/ecmascript/exercises/beer-song/package.json +6 -0
- data/tracks/ecmascript/exercises/binary-search-tree/package.json +6 -0
- data/tracks/ecmascript/exercises/binary-search/package.json +6 -0
- data/tracks/ecmascript/exercises/binary/package.json +6 -0
- data/tracks/ecmascript/exercises/bob/package.json +6 -0
- data/tracks/ecmascript/exercises/bracket-push/package.json +6 -0
- data/tracks/ecmascript/exercises/circular-buffer/circular-buffer.spec.js +11 -13
- data/tracks/ecmascript/exercises/circular-buffer/example.js +15 -14
- data/tracks/ecmascript/exercises/circular-buffer/package.json +6 -0
- data/tracks/ecmascript/exercises/clock/package.json +6 -0
- data/tracks/ecmascript/exercises/connect/package.json +6 -0
- data/tracks/ecmascript/exercises/crypto-square/package.json +6 -0
- data/tracks/ecmascript/exercises/custom-set/package.json +6 -0
- data/tracks/ecmascript/exercises/diamond/package.json +6 -0
- data/tracks/ecmascript/exercises/difference-of-squares/package.json +6 -0
- data/tracks/ecmascript/exercises/etl/package.json +6 -0
- data/tracks/ecmascript/exercises/food-chain/package.json +6 -0
- data/tracks/ecmascript/exercises/gigasecond/package.json +6 -0
- data/tracks/ecmascript/exercises/grade-school/package.json +6 -0
- data/tracks/ecmascript/exercises/grains/package.json +6 -0
- data/tracks/ecmascript/exercises/hamming/package.json +6 -0
- data/tracks/ecmascript/exercises/hello-world/package.json +6 -0
- data/tracks/ecmascript/exercises/hexadecimal/package.json +6 -0
- data/tracks/ecmascript/exercises/isogram/package.json +6 -0
- data/tracks/ecmascript/exercises/kindergarten-garden/package.json +6 -0
- data/tracks/ecmascript/exercises/largest-series-product/package.json +6 -0
- data/tracks/ecmascript/exercises/leap/package.json +6 -0
- data/tracks/ecmascript/exercises/linked-list/package.json +6 -0
- data/tracks/ecmascript/exercises/luhn/package.json +6 -0
- data/tracks/ecmascript/exercises/matrix/package.json +6 -0
- data/tracks/ecmascript/exercises/meetup/package.json +6 -0
- data/tracks/ecmascript/exercises/nth-prime/package.json +6 -0
- data/tracks/ecmascript/exercises/ocr-numbers/package.json +6 -0
- data/tracks/ecmascript/exercises/octal/package.json +6 -0
- data/tracks/ecmascript/exercises/package.json +11 -0
- data/tracks/ecmascript/exercises/palindrome-products/package.json +6 -0
- data/tracks/ecmascript/exercises/pangram/package.json +6 -0
- data/tracks/ecmascript/exercises/pascals-triangle/package.json +6 -0
- data/tracks/ecmascript/exercises/perfect-numbers/package.json +6 -0
- data/tracks/ecmascript/exercises/phone-number/package.json +6 -0
- data/tracks/ecmascript/exercises/pig-latin/package.json +6 -0
- data/tracks/ecmascript/exercises/prime-factors/package.json +6 -0
- data/tracks/ecmascript/exercises/pythagorean-triplet/package.json +6 -0
- data/tracks/ecmascript/exercises/queen-attack/package.json +6 -0
- data/tracks/ecmascript/exercises/raindrops/package.json +6 -0
- data/tracks/ecmascript/exercises/rna-transcription/package.json +6 -0
- data/tracks/ecmascript/exercises/robot-name/package.json +6 -0
- data/tracks/ecmascript/exercises/robot-simulator/package.json +6 -0
- data/tracks/ecmascript/exercises/roman-numerals/package.json +6 -0
- data/tracks/ecmascript/exercises/saddle-points/package.json +6 -0
- data/tracks/ecmascript/exercises/say/package.json +6 -0
- data/tracks/ecmascript/exercises/scrabble-score/package.json +6 -0
- data/tracks/ecmascript/exercises/secret-handshake/package.json +6 -0
- data/tracks/ecmascript/exercises/series/package.json +6 -0
- data/tracks/ecmascript/exercises/sieve/package.json +6 -0
- data/tracks/ecmascript/exercises/simple-cipher/package.json +6 -0
- data/tracks/ecmascript/exercises/space-age/package.json +6 -0
- data/tracks/ecmascript/exercises/strain/package.json +6 -0
- data/tracks/ecmascript/exercises/sum-of-multiples/package.json +6 -0
- data/tracks/ecmascript/exercises/triangle/package.json +6 -0
- data/tracks/ecmascript/exercises/trinary/package.json +6 -0
- data/tracks/ecmascript/exercises/two-bucket/package.json +6 -0
- data/tracks/ecmascript/exercises/word-count/package.json +6 -0
- data/tracks/ecmascript/exercises/wordy/package.json +6 -0
- data/tracks/ecmascript/package.json +6 -0
- data/tracks/ecmascript/yarn.lock +9 -2
- data/tracks/go/README.md +3 -4
- data/tracks/haskell/README.md +1 -1
- data/tracks/java/.gitignore +0 -1
- data/tracks/java/.travis.yml +15 -1
- data/tracks/java/bin/journey-test.sh +3 -4
- data/tracks/java/bin/unit-tests.sh +2 -2
- data/tracks/java/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/tracks/java/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/tracks/java/gradlew +172 -0
- data/tracks/java/gradlew.bat +84 -0
- data/tracks/javascript/config.json +0 -74
- data/tracks/javascript/exercises/isogram/isogram.spec.js +6 -0
- data/tracks/php/config.json +5 -0
- data/tracks/php/exercises/prime-factors/example.php +13 -0
- data/tracks/php/exercises/prime-factors/prime-factors_test.php +46 -0
- data/tracks/ruby/exercises/isogram/.meta/.version +1 -1
- data/tracks/ruby/exercises/isogram/.meta/generator/isogram_case.rb +15 -1
- data/tracks/ruby/exercises/isogram/isogram_test.rb +10 -10
- data/tracks/ruby/exercises/sum-of-multiples/.meta/.version +1 -0
- data/tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb +11 -0
- data/tracks/ruby/exercises/sum-of-multiples/.meta/solutions/sum_of_multiples.rb +4 -0
- data/tracks/ruby/exercises/sum-of-multiples/sum_of_multiples_test.rb +51 -12
- data/tracks/rust/exercises/forth/example.rs +2 -6
- data/tracks/rust/exercises/forth/tests/forth.rs +18 -18
- metadata +10 -2
@@ -1,25 +1,28 @@
|
|
1
1
|
let buffer, bufferMax;
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
export class BufferEmptyError extends Error {
|
4
|
+
constructor(message) {
|
5
|
+
super();
|
6
|
+
this.message = message || 'Buffer is empty.';
|
7
|
+
}
|
8
|
+
};
|
9
|
+
export class BufferFullError extends Error {
|
10
|
+
constructor(message) {
|
11
|
+
super();
|
12
|
+
this.message = message || 'Buffer is full.';
|
13
|
+
}
|
14
|
+
};
|
12
15
|
|
13
16
|
const read = () => {
|
14
17
|
if (buffer.length === 0){
|
15
|
-
throw
|
18
|
+
throw new BufferEmptyError();
|
16
19
|
}
|
17
20
|
return buffer.splice(0,1)[0];
|
18
21
|
};
|
19
22
|
|
20
23
|
const write = (value) => {
|
21
24
|
if (buffer.length === bufferMax){
|
22
|
-
throw
|
25
|
+
throw new BufferFullError();
|
23
26
|
}
|
24
27
|
value ? buffer.push(value) : null;
|
25
28
|
};
|
@@ -41,9 +44,7 @@ const CircularBuffer = (capacity) => {
|
|
41
44
|
write: write,
|
42
45
|
forceWrite: forceWrite,
|
43
46
|
clear: clear
|
44
|
-
}
|
47
|
+
};
|
45
48
|
};
|
46
49
|
|
47
50
|
export { CircularBuffer as default };
|
48
|
-
export { BufferFullException as bufferFullException };
|
49
|
-
export { BufferEmptyException as bufferEmptyException };
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|