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

sc-data

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sc-data - npm Package Compare versions

Comparing version 0.0.0 to 0.0.2

18

item.js

@@ -5,3 +5,2 @@ var is = require( "sc-is" ),

hasKey = require( "sc-hasKey" ),
request = require( "sc-request" ),
emitter = require( "emitter-component" ),

@@ -59,19 +58,2 @@ extendify = require( "sc-extendify" );

return json;
},
destroy: function () {
var self = this,
defer = q.defer();
request( {
type: "DELETE",
url: self.__options.url,
data: self.json()
} ).then( function ( res ) {
defer.resolve( self );
} ).fail( defer.reject );
return defer.promise;
}

@@ -78,0 +60,0 @@

11

package.json
{
"name": "sc-data",
"version": "0.0.0",
"version": "0.0.2",
"description": "A data module",

@@ -11,2 +11,6 @@ "main": "index.js",

},
"repository": {
"type": "git",
"url": "https://github.com/SPEAKUI/sc-data"
},
"author": "David Tsuji",

@@ -32,5 +36,4 @@ "license": "MIT",

"sc-is": "0.0.x",
"sc-pick": "0.0.x",
"sc-request": "0.0.x"
"sc-pick": "0.0.x"
}
}
}

@@ -25,3 +25,3 @@ describe( "scdata", function () {

it( "should exist", function () {
new scdata.Item().should.have.properties( [ "json", "destroy" ] );
new scdata.Item().should.have.properties( [ "json" ] );
} );

@@ -28,0 +28,0 @@

Sorry, the diff of this file is too big to display

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