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

urlbox-next

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urlbox-next - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

2

dist/urlbox-next.cjs.development.js

@@ -47,3 +47,3 @@ 'use strict';

authenticated: "" + prefix + key + "/" + token + "/" + (options.format || "png") + "?" + query,
postJSON: "curl " + prefix + "render \n -H \"Authorization: Bearer " + secret + "\" \n -H \"Content-Type: application/json\" \n" + JSON.stringify(options, null, 2),
postJSON: "curl -X POST\n -H \"Authorization: Bearer " + secret + "\" \n -H \"Content-Type: application/json\"\n -d '" + JSON.stringify(options, null, 2) + "'\n https://api.urlbox.io/v1/render",
postForm: "curl " + prefix + "render"

@@ -50,0 +50,0 @@ };

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("qs"),e=require("crypto-js/hmac-sha1"),t={},n=function(r,t){return e(r,t)},o=function(e){return r.stringify(e,{encoder:function(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))},filter:function(r,e){if("format"!==r&&"token"!==r&&"key"!==r&&e)return e},arrayFormat:"repeat"})},u=function(r){if(!r)throw new Error("no options object passed");if(null!=r.url&&"string"!=typeof r.url)throw new Error("url should be of type string (something like google.com)");if(null===r.url||null===r.html)throw new Error("url or html option is required");return Object.assign({},t,r)};exports.default=function(r,e,t){if(void 0===t&&(t="https://api.urlbox.io/v1/"),!r)throw new Error("Please provide your urlbox API key");if(!e)throw new Error("Please provide your urlbox secret key");return{buildUrl:function(i){i=u(i);var l=o(i);if(e){var a=n(l,e);return""+t+r+"/"+a+"/"+(i.format||"png")+"?"+l}return""+t+r+"/"+(i.format||"png")+"?"+l},buildUrls:function(i){i=u(i);var l=o(i),a=n(l,e);return{unauthenticated:""+t+r+"/"+(i.format||"png")+"?"+l,authenticated:""+t+r+"/"+a+"/"+(i.format||"png")+"?"+l,postJSON:"curl "+t+'render \n -H "Authorization: Bearer '+e+'" \n -H "Content-Type: application/json" \n'+JSON.stringify(i,null,2),postForm:"curl "+t+"render"}}}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("qs"),e=require("crypto-js/hmac-sha1"),t={},n=function(r,t){return e(r,t)},o=function(e){return r.stringify(e,{encoder:function(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))},filter:function(r,e){if("format"!==r&&"token"!==r&&"key"!==r&&e)return e},arrayFormat:"repeat"})},i=function(r){if(!r)throw new Error("no options object passed");if(null!=r.url&&"string"!=typeof r.url)throw new Error("url should be of type string (something like google.com)");if(null===r.url||null===r.html)throw new Error("url or html option is required");return Object.assign({},t,r)};exports.default=function(r,e,t){if(void 0===t&&(t="https://api.urlbox.io/v1/"),!r)throw new Error("Please provide your urlbox API key");if(!e)throw new Error("Please provide your urlbox secret key");return{buildUrl:function(u){u=i(u);var l=o(u);if(e){var a=n(l,e);return""+t+r+"/"+a+"/"+(u.format||"png")+"?"+l}return""+t+r+"/"+(u.format||"png")+"?"+l},buildUrls:function(u){u=i(u);var l=o(u),a=n(l,e);return{unauthenticated:""+t+r+"/"+(u.format||"png")+"?"+l,authenticated:""+t+r+"/"+a+"/"+(u.format||"png")+"?"+l,postJSON:'curl -X POST\n -H "Authorization: Bearer '+e+'" \n -H "Content-Type: application/json"\n -d \''+JSON.stringify(u,null,2)+"'\n https://api.urlbox.io/v1/render",postForm:"curl "+t+"render"}}}};
//# sourceMappingURL=urlbox-next.cjs.production.min.js.map

@@ -43,3 +43,3 @@ var qs = /*#__PURE__*/require("qs");

authenticated: "" + prefix + key + "/" + token + "/" + (options.format || "png") + "?" + query,
postJSON: "curl " + prefix + "render \n -H \"Authorization: Bearer " + secret + "\" \n -H \"Content-Type: application/json\" \n" + JSON.stringify(options, null, 2),
postJSON: "curl -X POST\n -H \"Authorization: Bearer " + secret + "\" \n -H \"Content-Type: application/json\"\n -d '" + JSON.stringify(options, null, 2) + "'\n https://api.urlbox.io/v1/render",
postForm: "curl " + prefix + "render"

@@ -46,0 +46,0 @@ };

{
"version": "2.0.4",
"version": "2.0.5",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

@@ -48,6 +48,7 @@ "use strict";

"png"}?${query}`,
postJSON: `curl ${prefix}render
postJSON: `curl -X POST
-H "Authorization: Bearer ${secret}"
-H "Content-Type: application/json"
${JSON.stringify(options, null, 2)}`,
-H "Content-Type: application/json"
-d '${JSON.stringify(options,null,2)}'
https://api.urlbox.io/v1/render`,
postForm: `curl ${prefix}render`

@@ -54,0 +55,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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