Skip to content

Commit 06ab6fe

Browse files
Merge pull request #2 from philipstanislaus/update-dev-dependencies
Update dev dependencies
2 parents f500bbd + e7ce934 commit 06ab6fe

File tree

9 files changed

+850
-855
lines changed

9 files changed

+850
-855
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/node:10.11.0
7+
steps:
8+
- checkout
9+
10+
# Download and cache dependencies
11+
- restore_cache:
12+
keys:
13+
- v1-dependencies-{{ checksum "package.json" }}
14+
# fallback to using the latest cache if no exact match is found
15+
- v1-dependencies-
16+
17+
- run: yarn install
18+
19+
- save_cache:
20+
paths:
21+
- node_modules
22+
key: v1-dependencies-{{ checksum "package.json" }}
23+
24+
- run: |
25+
yarn run lint
26+
yarn run build
27+
yarn run test-and-send-cov-to-coveralls
28+
29+
workflows:
30+
version: 2
31+
build:
32+
jobs:
33+
- build

build/arrayToTree.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/arrayToTree.spec.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

build/arrayToTree.spec.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

circle.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "performant-array-to-tree",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.",
55
"main": "build/arrayToTree.min.js",
66
"types": "build/arrayToTree.d.ts",
@@ -10,16 +10,16 @@
1010
"dependencies": {},
1111
"devDependencies": {
1212
"@types/chai": "^4.0.4",
13-
"@types/mocha": "^2.2.41",
13+
"@types/mocha": "^5.2.7",
1414
"chai": "^4.1.2",
1515
"coveralls": "^3.0.0",
1616
"istanbul": "^0.4.5",
17-
"mocha": "^4.0.1",
17+
"mocha": "^6.1.4",
1818
"mocha-lcov-reporter": "^1.3.0",
19-
"remap-istanbul": "^0.9.5",
19+
"remap-istanbul": "^0.13.0",
2020
"tslint": "^5.2.0",
21-
"tslint-config-standard": "^6.0.1",
22-
"typescript": "^2.3.2",
21+
"tslint-config-standard": "^8.0.1",
22+
"typescript": "^3.5.2",
2323
"uglify-js": "^3.1.1"
2424
},
2525
"scripts": {

src/arrayToTree.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ describe('arrayToTree', () => {
88
{ id: '31', parentId: '4', custom: '12' },
99
{ id: '1941', parentId: '418', custom: 'de' },
1010
{ id: '1', parentId: '418', custom: 'ZZZz' },
11-
{ id: '418', parentId: null, custom: 'ü'},
11+
{ id: '418', parentId: null, custom: 'ü' },
1212
])).to.deep.equal([
1313
{ data: { id: '4', parentId: null, custom: 'abc' }, children: [
1414
{ data: { id: '31', parentId: '4', custom: '12' }, children: [] },
1515
] },
16-
{ data: { id: '418', parentId: null, custom: 'ü'}, children: [
16+
{ data: { id: '418', parentId: null, custom: 'ü' }, children: [
1717
{ data: { id: '1941', parentId: '418', custom: 'de' }, children: [] },
1818
{ data: { id: '1', parentId: '418', custom: 'ZZZz' }, children: [] },
1919
] },
@@ -27,14 +27,14 @@ describe('arrayToTree', () => {
2727
{ num: '31', ref: '4', custom: '12' },
2828
{ num: '1941', ref: '418', custom: 'de' },
2929
{ num: '1', ref: '418', custom: 'ZZZz' },
30-
{ num: '418', ref: null, custom: 'ü'},
30+
{ num: '418', ref: null, custom: 'ü' },
3131
] as any),
3232
{ id: 'num', parentId: 'ref' },
3333
)).to.deep.equal([
3434
{ data: { num: '4', ref: null, custom: 'abc' }, children: [
3535
{ data: { num: '31', ref: '4', custom: '12' }, children: [] },
3636
] },
37-
{ data: { num: '418', ref: null, custom: 'ü'}, children: [
37+
{ data: { num: '418', ref: null, custom: 'ü' }, children: [
3838
{ data: { num: '1941', ref: '418', custom: 'de' }, children: [] },
3939
{ data: { num: '1', ref: '418', custom: 'ZZZz' }, children: [] },
4040
] },

src/arrayToTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export interface Item {
22
id: string
3-
parentId: string|null,
3+
parentId: string | null,
44
[key: string]: any,
55
}
66

77
export interface TreeItem {
8-
data: Item|null
8+
data: Item | null
99
children: TreeItem[]
1010
}
1111

0 commit comments

Comments
 (0)