Comparing version 0.1.40 to 0.1.42
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
var Model, bindable, dref, memoize, payload, type, _, | ||
var Model, bindable, comerr, dref, memoize, payload, type, _, | ||
__hasProp = {}.hasOwnProperty, | ||
@@ -20,2 +20,4 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
comerr = require("comerr"); | ||
Model = (function(_super) { | ||
@@ -22,0 +24,0 @@ __extends(Model, _super); |
@@ -77,12 +77,13 @@ // Generated by CoffeeScript 1.6.2 | ||
fet = options.method + " " + host + path; | ||
console.log(fet); | ||
return $.ajax({ | ||
url: host + path, | ||
contentType: "application/json", | ||
type: options.method, | ||
dataType: "json", | ||
data: /GET/.test(options.method) ? void 0 : JSON.parse(JSON.stringify(options.data || {})), | ||
error: function(err) { | ||
return next(new Error((err != null ? err.message : void 0) || err)); | ||
error: function(response) { | ||
if (response.responseJSON) { | ||
return next(response.responseJSON); | ||
} | ||
return next(comerr.fromCode(response.status)); | ||
}, | ||
@@ -89,0 +90,0 @@ success: function(content) { |
{ | ||
"name": "linen", | ||
"version": "0.1.40", | ||
"version": "0.1.42", | ||
"description": "```javascript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
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
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
0
87059
44
1986