Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linen

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linen - npm Package Compare versions

Comparing version 0.1.40 to 0.1.42

test/api-test.js

4

lib/model.js
// 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc