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

syncano-server

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syncano-server - npm Package Compare versions

Comparing version 0.5.5 to 0.6.0

11

lib/data.js

@@ -13,2 +13,6 @@ 'use strict';

var _camelcaseKeys = require('camelcase-keys');
var _camelcaseKeys2 = _interopRequireDefault(_camelcaseKeys);
var _queryBuilder = require('./query-builder');

@@ -76,2 +80,3 @@

var baseUrl = this.baseUrl;
var camelCase = this.instance.camelCase;

@@ -96,2 +101,8 @@ var fetch = this.fetch.bind(this);

if (camelCase === true) {
result = result.map(function (item) {
return (0, _camelcaseKeys2.default)(item);
});
}
resolve(result);

@@ -98,0 +109,0 @@ }

3

package.json
{
"name": "syncano-server",
"version": "0.5.5",
"version": "0.6.0",
"description": "A library to intereact with the Syncano API on a server side",

@@ -33,2 +33,3 @@ "main": "lib/index.js",

"dependencies": {
"camelcase-keys": "^4.0.0",
"node-fetch": "^1.6.3"

@@ -35,0 +36,0 @@ },

@@ -14,3 +14,3 @@ [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![CircleCI](https://circleci.com/gh/Syncano/syncano-server-js/tree/devel.svg?style=shield&circle-token=0340c11444db6f3dc227cf310f4d8ff1bd90dee8)](https://circleci.com/gh/Syncano/syncano-server-js/tree/devel)

token: '9-12jdiasdnfo23nrokms',
instance: 'example-instance-name'
instanceName: 'example-instance-name'
})

@@ -17,0 +17,0 @@ ```

import querystring from 'querystring'
import camelcaseKeys from 'camelcase-keys'
import QueryBuilder from './query-builder'

@@ -33,2 +34,3 @@ import {NotFoundError} from './errors'

const {baseUrl} = this
const {camelCase} = this.instance
const fetch = this.fetch.bind(this)

@@ -54,2 +56,6 @@ const pageSize = this.query.page_size || 0

if (camelCase === true) {
result = result.map(item => camelcaseKeys(item))
}
resolve(result)

@@ -56,0 +62,0 @@ }

Sorry, the diff of this file is not supported yet

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