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 @@ |
{ | ||
"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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8
3
122141
3883
- Removedsc-request@0.0.x