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

restl

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restl - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

changelog.md
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 @@ ------------------

1

lib/resource.js

@@ -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));

2

package.json
{
"name": "restl",
"version": "0.1.0",
"version": "0.1.1",
"description": "Opiniated HAL client.",

@@ -5,0 +5,0 @@ "main": "lib/index.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);
});
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