New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jeedom-request-jsonrpc

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jeedom-request-jsonrpc - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

0

.eslintrc.js

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ export class apiJeedom {

module.exports = require('./lib/jeedom-request-jsonrpc')

@@ -0,0 +0,0 @@ const axios = require('axios')

13

package.json
{
"name": "jeedom-request-jsonrpc",
"version": "1.0.6",
"version": "1.0.7",
"description": "Module node pour API JEEDOM JSON-RPC",

@@ -20,2 +20,5 @@ "main": "/lib/jeedom-request-jsonrpc.js",

"license": "ISC",
"resolutions": {
"js-yaml": "^3.13.1"
},
"dependencies": {

@@ -26,9 +29,9 @@ "axios": "0.18.0",

"devDependencies": {
"eslint": "^5.6.0",
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0"
}
}

@@ -30,3 +30,3 @@ <p align="center">

- `npm i jeedom-request-jsonrpc --save` or
- `npm i jeedom-request-jsonrpc --save`
- `yarn add jeedom-request-jsonrpc`

@@ -54,3 +54,3 @@

```javascript
let requestJeedom = apiJeedomRunnable.run(
const requestJeedom = apiJeedomRunnable.run(
'scenario::changeState', {

@@ -69,3 +69,3 @@ id: 11,

Example 1 :
Example 1 : (`Promise flow`)

@@ -82,3 +82,3 @@ ```javascript

Example 2 :
Example 2 : (`async - await`)

@@ -89,3 +89,3 @@ ```javascript

let jeedomResponse = await requestJeedom
console.log("Response tree", jeedomResponse)
console.log("Response", jeedomResponse)
} catch (e) {

@@ -106,14 +106,14 @@ cb(e)

{
"result": true,
"status": 200,
"statusText":"OK"
"statusText":"OK",
"result": true
}
// with a value returned
{
"result":{
"collectDate": "2018-09-30 14:49:03",
"value": 21.2
},
"status": 200,
"statusText":"OK"
"status": 200,
"statusText":"OK",
"result":{
"collectDate": "2018-09-30 14:49:03",
"value": 21.2
}
}

@@ -120,0 +120,0 @@ ```

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