Comparing version 0.1.0 to 0.1.1
ChangeLog | ||
========= | ||
0.1.1 (2017-04-03) | ||
------------------ | ||
* #10: Returning the response body from the `refresh()` function, similar to | ||
`GET` but cache-defeating. | ||
0.1.0 (2017-02-13) | ||
@@ -5,0 +12,0 @@ ------------------ |
@@ -115,2 +115,3 @@ 'use strict'; | ||
} | ||
return this.repr.body; | ||
// Removing embedded because it just takes up extra memory. | ||
@@ -117,0 +118,0 @@ }.bind(this)); |
{ | ||
"name": "restl", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Opiniated HAL client.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
43
test.js
@@ -1,31 +0,30 @@ | ||
var Client = require('./lib/client'); | ||
var restl = require('.'); | ||
var options = { | ||
auth: { | ||
user: 'developers@getturnstyle.com', | ||
pass: 'password' | ||
} | ||
}; | ||
auth: { | ||
user: 'developers@getturnstyle.com', | ||
pass: 'password' | ||
} | ||
} | ||
var client = new Client('http://localhost:3009/', options); | ||
var client = restl('http://192.168.0.21:3009/', options); | ||
var home = client.getResource(); | ||
var bla = home | ||
.follow('currentUser') | ||
.follow('accounts') | ||
.then(function(foo) { | ||
console.log(foo); | ||
home.follow('currentUser') | ||
.then(function(currentUser) { | ||
return currentUser.follow('accounts') | ||
}) | ||
.then(function(accounts) { | ||
return accounts.get(); | ||
}) | ||
.then(function(result) { | ||
console.log(result); | ||
/* | ||
.followAll('item') | ||
.then(function(accounts) { | ||
return accounts[0]; | ||
}) | ||
.follow('locations') | ||
.get() | ||
.then(function(locationHal) { | ||
console.log(locationHal); | ||
});*/ | ||
.catch(function(err) { | ||
console.log(err); | ||
}); |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
21201
14
375