ddf-time-utils
Advanced tools
Comparing version 0.1.5 to 0.1.6
10
index.js
'use strict'; | ||
const Symbol = require('core-js/library/es6/symbol'); | ||
const Object = require('core-js/library/es6/object'); | ||
const _ = require('lodash'); | ||
const moment = require('moment'); | ||
const Symbol = require('es6-symbol/polyfill'); | ||
const getOwnPropertySymbols = require('get-own-property-symbols'); | ||
const TWO_DIGITS_MIN_NUMBER = 10; | ||
@@ -139,3 +139,3 @@ const MAX_MONTH = 12; | ||
plainTimeQuery | ||
.map(queryDetail => getOwnPropertySymbols(TIME_TYPE_PATTERNS) | ||
.map(queryDetail => Object.getOwnPropertySymbols(TIME_TYPE_PATTERNS) | ||
.filter(type => TIME_TYPE_PATTERNS[type].regularExp.test(queryDetail))) | ||
@@ -214,3 +214,3 @@ )); | ||
exports.TIME_TYPES = getOwnPropertySymbols(TIME_TYPE_PATTERNS); | ||
exports.TIME_TYPES = Object.getOwnPropertySymbols(TIME_TYPE_PATTERNS); | ||
exports.TIME_TYPES_AS_STRINGS = exports.TIME_TYPES.map(Symbol.keyFor); |
{ | ||
"name": "ddf-time-utils", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Gapminder DDF time utils", | ||
@@ -27,4 +27,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"es6-symbol": "3.1.0", | ||
"get-own-property-symbols": "0.9.2", | ||
"core-js": "2.4.1", | ||
"lodash": "4.7.0", | ||
@@ -31,0 +30,0 @@ "moment": "2.14.1" |
@@ -9,3 +9,2 @@ 'use strict'; | ||
const incorrectQueries = require('./fixtures/incorrect-queries'); | ||
const Symbol = require('es6-symbol/polyfill'); | ||
@@ -12,0 +11,0 @@ chai.use(sinonChai); |
3
63849
898
+ Addedcore-js@2.4.1
+ Addedcore-js@2.4.1(transitive)
- Removedes6-symbol@3.1.0
- Removedget-own-property-symbols@0.9.2
- Removedd@0.1.11.0.2(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.03.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedext@1.7.0(transitive)
- Removedget-own-property-symbols@0.9.2(transitive)
- Removednext-tick@1.1.0(transitive)
- Removedtype@2.7.3(transitive)