Socket
Socket
Sign inDemoInstall

artifacia

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artifacia - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "artifacia",
"version": "0.1.5",
"version": "0.1.6",
"description": "A javascript client to integrate visual recommendation feature from Artifacia API",

@@ -5,0 +5,0 @@ "main": "src/artifacia.js",

@@ -110,10 +110,7 @@ "use strict";

exports.get_visual_recommendation = function(prod_id, num, filters, callback){
exports.get_visual_recommendation = function(prod_id, num, filters = {}, callback){
// console.log(prod_id);
var baseUrl = 'https://api.artifacia.com/v1/recommendation/similar/'+prod_id+'/'+num+'?';
for (var key in filters){
baseUrl = baseUrl+key+'='+filters[key]+'&'
}
var baseUrl = 'https://api.artifacia.com/v1/recommendation/similar/'+prod_id+'/'+num;
var headers = {

@@ -127,4 +124,5 @@ 'Content-Type' : 'application/json',

headers: headers,
method: 'GET',
method: 'POST',
json: true,
body: {"filters":filters},
rejectUnauthorized: false

@@ -131,0 +129,0 @@ };

Sorry, the diff of this file is too big to display

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