File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed
Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 2020 },
2121 "license" : " BSD-3-Clause" ,
2222 "dependencies" : {
23- "es6-map" : " ^0.1.3" ,
2423 "hoist-non-react-statics" : " ^1.0.5" ,
2524 "lodash" : " ^4.6.1" ,
2625 "object-unfreeze" : " ^1.0.2"
3534 "react-dom" : " ^15.0.0-rc.1"
3635 },
3736 "scripts" : {
38- "pragmatist" : " node ./node_modules/.bin/ pragmatist --es5" ,
37+ "pragmatist" : " pragmatist --es5" ,
3938 "lint" : " npm run pragmatist lint" ,
4039 "test" : " npm run pragmatist test --type-annotations" ,
4140 "build" : " npm run pragmatist build" ,
Original file line number Diff line number Diff line change 1- import Map from 'es6 -map' ;
1+ import Map from './simple -map' ;
22
33const stylesIndex = new Map ( ) ;
44
Original file line number Diff line number Diff line change 11import _ from 'lodash' ;
2- import Map from 'es6 -map' ;
2+ import Map from './simple -map' ;
33
44const userConfigurationIndex = new Map ( ) ;
55
Original file line number Diff line number Diff line change 1+ export default class SimpleMap {
2+ constructor ( ) {
3+ this . keys = [ ] ;
4+ this . values = [ ] ;
5+ }
6+
7+ get ( key ) {
8+ const index = this . keys . indexOf ( key ) ;
9+ if ( index === - 1 ) {
10+ return ;
11+ }
12+ return this . values [ index ] ;
13+ }
14+
15+ set ( key , value ) {
16+ this . keys . push ( key ) ;
17+ this . values . push ( value ) ;
18+ return value ;
19+ }
20+ }
You can’t perform that action at this time.
0 commit comments