deskbookers
Advanced tools
Comparing version 3.1.4 to 3.1.5
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'hash.js', 'url', 'qs', 'json_encode', 'deskbookers-phpurlencode', 'lodash'], factory); | ||
define(['exports', 'hash.js', 'url', 'qs', 'json_encode', 'phpurlencode', 'lodash'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('hash.js'), require('url'), require('qs'), require('json_encode'), require('deskbookers-phpurlencode'), require('lodash')); | ||
factory(exports, require('hash.js'), require('url'), require('qs'), require('json_encode'), require('phpurlencode'), require('lodash')); | ||
} else { | ||
@@ -10,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.hash, global.url, global.qs, global.json_encode, global.deskbookersPhpurlencode, global.lodash); | ||
factory(mod.exports, global.hash, global.url, global.qs, global.json_encode, global.phpurlencode, global.lodash); | ||
global.requests = mod.exports; | ||
} | ||
})(this, function (exports, _hash, _url, _qs, _json_encode, _deskbookersPhpurlencode, _lodash) { | ||
})(this, function (exports, _hash, _url, _qs, _json_encode, _phpurlencode, _lodash) { | ||
'use strict'; | ||
@@ -24,3 +24,3 @@ | ||
var _deskbookersPhpurlencode2 = _interopRequireDefault(_deskbookersPhpurlencode); | ||
var _phpurlencode2 = _interopRequireDefault(_phpurlencode); | ||
@@ -90,3 +90,3 @@ function _interopRequireDefault(obj) { | ||
var phpJsonEncode = exports.phpJsonEncode = function phpJsonEncode(val) { | ||
return (0, _json_encode2.default)(typeof val === 'undefined' ? null : val); | ||
return (0, _json_encode2.default)(typeof val === 'undefined' ? null : val).replace(/(?!\\)\//g, '\\/'); | ||
}; | ||
@@ -98,3 +98,3 @@ | ||
var phpUrlEncode = exports.phpUrlEncode = _deskbookersPhpurlencode2.default; | ||
var phpUrlEncode = exports.phpUrlEncode = _phpurlencode2.default; | ||
}); |
{ | ||
"name": "deskbookers", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "Deskbookers API JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
272847
36
3605