ddf-time-utils
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -7,2 +7,3 @@ 'use strict'; | ||
const Symbol = require('es6-symbol/polyfill'); | ||
const getOwnPropertySymbols = require('get-own-property-symbols'); | ||
@@ -139,3 +140,3 @@ const TWO_DIGITS_MIN_NUMBER = 10; | ||
plainTimeQuery | ||
.map(queryDetail => Object.getOwnPropertySymbols(TIME_TYPE_PATTERNS) | ||
.map(queryDetail => getOwnPropertySymbols(TIME_TYPE_PATTERNS) | ||
.filter(type => TIME_TYPE_PATTERNS[type].regularExp.test(queryDetail))) | ||
@@ -214,3 +215,3 @@ )); | ||
exports.TIME_TYPES = Object.getOwnPropertySymbols(TIME_TYPE_PATTERNS); | ||
exports.TIME_TYPES = getOwnPropertySymbols(TIME_TYPE_PATTERNS); | ||
exports.TIME_TYPES_AS_STRINGS = exports.TIME_TYPES.map(Symbol.keyFor); |
{ | ||
"name": "ddf-time-utils", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Gapminder DDF time utils", | ||
@@ -28,2 +28,3 @@ "main": "index.js", | ||
"es6-symbol": "3.1.0", | ||
"get-own-property-symbols": "0.9.2", | ||
"lodash": "4.7.0", | ||
@@ -30,0 +31,0 @@ "moment": "2.14.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63932
899
4
+ Addedget-own-property-symbols@0.9.2(transitive)