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

yodata-client-js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yodata-client-js - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json

@@ -19,3 +19,3 @@ {

},
"version": "0.0.2",
"version": "0.0.3",
"main": "yodata.client.js",

@@ -22,0 +22,0 @@ "private": false,

@@ -49,3 +49,3 @@ ## Yodata JavaScript Client

client.find('yodata.task', options , function(err, results) {
ydClientUi.api.find('yodata.task', options , function(err, results) {
if (err) {

@@ -52,0 +52,0 @@ //an error occurred

@@ -158,7 +158,8 @@ (function(){

client.prototype.findById = function(modelId, objectId, callback) {
this.executeApiCall(urlForModel(modelId) + 'findById/' + objectId, 'GET', null, callback);
var validParams = ['populate'];
this.executeApiCall(addOptionsToQueryString(urlForModel(modelId)) + 'findById/' + objectId, 'GET', null, callback);
}
client.prototype.find = function(modelId, options, callback) {
var validParams = ['criteria', 'limit', 'offset', 'sort', 'fields'];
var validParams = ['criteria', 'limit', 'offset', 'sort', 'fields', 'populate'];
var url = addOptionsToQueryString(urlForModel(modelId) + 'find/', options, validParams);

@@ -224,2 +225,6 @@ this.executeApiCall(url, 'GET', null, callback);

if (validParams.indexOf('populate') !== -1 && options.populate) {
url += appendQueryParam(url, 'populate', encodeURIComponent(JSON.stringify(options.populate)));
}
return url;

@@ -226,0 +231,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