Comparing version 6.7.0 to 6.7.2
{ | ||
"name": "nyks", | ||
"version": "6.7.0", | ||
"version": "6.7.2", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
"use strict"; | ||
const startsWith = require('mout/string/startsWith'); | ||
const isArray = require('mout/lang/isArray'); | ||
const startsWith = require('mout/string/startsWith'); | ||
const isArray = require('mout/lang/isArray'); | ||
const binaryReviver = require('../lang/binaryReviver'); | ||
const JSON_ARGS = new RegExp("::json$"); | ||
const B64_ARGS = new RegExp("::base64$"); | ||
const JSONB_ARGS = new RegExp("::jsonb$"); | ||
const JSON_ARGS = new RegExp("::json$"); | ||
const B64_ARGS = new RegExp("::base64$"); | ||
@@ -45,3 +47,8 @@ module.exports = function(argv) { | ||
if(JSONB_ARGS.test(k)) { | ||
k = k.substr(0, k.length - 7); | ||
v = JSON.parse(v, binaryReviver); | ||
} | ||
if(typeof v === 'string' && v !== '' && isFinite(v)) //mout isFinite force parseFloat | ||
@@ -48,0 +55,0 @@ v = parseFloat(v); |
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
75309
2035