Comparing version 0.1.39 to 0.1.40
@@ -10,3 +10,3 @@ // Generated by CoffeeScript 1.6.2 | ||
module.exports = function(options) { | ||
var fixPath, self, _ref; | ||
var defaultHost, fixPath, self, _ref; | ||
@@ -23,3 +23,3 @@ if (options == null) { | ||
host: (_ref = options.hosts) != null ? _ref.main : void 0, | ||
host: defaultHost = ((_ref = options.hosts) != null ? _ref.main : void 0) || ("" + window.location.protocol + "//" + window.location.host), | ||
/* | ||
@@ -79,5 +79,7 @@ joins two paths together | ||
fet = options.method + " " + host + path; | ||
console.log(fet); | ||
return $.ajax({ | ||
url: host + path, | ||
contentType: "application/json", | ||
type: options.method, | ||
@@ -110,3 +112,3 @@ dataType: "json", | ||
} | ||
host = options.host || rhost; | ||
host = options.host || defaultHost; | ||
if (!options.path) { | ||
@@ -113,0 +115,0 @@ options.path = function(payload) { |
{ | ||
"name": "linen", | ||
"version": "0.1.39", | ||
"version": "0.1.40", | ||
"description": "```javascript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
102262
83
2683
4