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

ryuu.js

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ryuu.js - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

26

domo.js
/**
domo.js v2.1.2
domo.js v2.2.0
Optional utility library for DomoApps

@@ -21,3 +21,5 @@ Includes es6-promises polyfill (https://github.com/jakearchibald/es6-promise) for older browsers

(function(){
domo.get = function(url) {
domo.get = function(url, options) {
options = options || {};
// Return a new promise.

@@ -27,4 +29,13 @@ return new Promise(function(resolve, reject) {

var req = new XMLHttpRequest();
req.open('GET', url);
// set format
if (options.format === 'array-of-arrays'){
req.setRequestHeader('Accept', 'application/json');
}
else if (options.format === 'csv'){
req.setRequestHeader('Accept', 'text/csv');
}
req.onload = function() {

@@ -34,2 +45,7 @@ var data;

if (req.status == 200) {
if (options.format === 'csv'){
resolve(req.response);
}
try {

@@ -62,4 +78,6 @@ data = JSON.parse(req.response);

domo.getAll = function(urls) {
return Promise.all(urls.map(domo.get));
domo.getAll = function(urls, options) {
return Promise.all(urls.map(function(url){
return domo.get(url, options);
}));
};

@@ -66,0 +84,0 @@

2

package.json
{
"name": "ryuu.js",
"version": "2.1.2",
"version": "2.2.0",
"description": "Ryuu JavaScript Utility Library",

@@ -5,0 +5,0 @@ "main": "domo.js",

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