File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @redneckz/json-ref" ,
3
- "version" : " 0.0.12 " ,
3
+ "version" : " 0.0.13 " ,
4
4
"license" : " MIT" ,
5
5
"author" : {
6
6
"name" : " redneckz" ,
Original file line number Diff line number Diff line change 1
1
import { type JSONNode } from '@redneckz/json-op' ;
2
2
import { refEntries } from './refEntries' ;
3
+ import { unique } from './unique' ;
3
4
4
- export const collectRef = ( json : JSONNode ) : string [ ] => refEntries ( json ) . map ( ( [ , _ ] ) => _ ) ;
5
+ export const collectRef = ( json : JSONNode ) : string [ ] => unique ( refEntries ( json ) . map ( ( [ , _ ] ) => _ ) ) ;
Original file line number Diff line number Diff line change 1
1
import * as fs from 'fs' ;
2
- import * as path from 'path' ;
2
+ import * as path from 'path/posix ' ;
3
3
import { promisify } from 'util' ;
4
4
import type { URIResolver } from './URIResolver' ;
5
5
Original file line number Diff line number Diff line change
1
+ export const unique = < T > ( list : T [ ] ) : T [ ] => [ ...new Set ( list ) ] ;
You can’t perform that action at this time.
0 commit comments