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

use-downloads

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-downloads - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

2

dist/index.cjs.js

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

var index_default = {
version: '1.4.0',
version: '1.5.0',
download: download,

@@ -89,0 +89,0 @@ downloadUrlFile: downloadUrlFile,

/*!
* use-downloads v1.4.0
* use-downloads v1.5.0
* A js utilities that contains all the methods for downloading files
* (c) 2021-2023 saqqdy<https://github.com/saqqdy>
* (c) 2022-2023 saqqdy<https://github.com/saqqdy>
* Released under the MIT License.

@@ -90,3 +90,3 @@ */

var index_default = {
version: '1.4.0',
version: '1.5.0',
download: download,

@@ -98,4 +98,4 @@ downloadUrlFile: downloadUrlFile,

var version = '1.4.0';
var version = '1.5.0';
export { index_default as default, download, downloadUrlFile, openFile, saveFile, version };
/*!
* use-downloads v1.4.0
* use-downloads v1.5.0
* A js utilities that contains all the methods for downloading files
* (c) 2021-2023 saqqdy<https://github.com/saqqdy>
* (c) 2022-2023 saqqdy<https://github.com/saqqdy>
* Released under the MIT License.
*/
function e(e,o){var n=window.URL||window.webkitURL||window,t=new Blob([e]),d=document.createElementNS("http://www.w3.org/1999/xhtml","a");d.href=n.createObjectURL(t),d.download=o,d.click()}function o(o,n){var t=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");t.open("GET",o,!0),t.responseType="blob",t.onload=function(){200===t.status&&e(t.response,n)},t.send()}function n(e,o,n){var t=document.createElement("a");t.style.display="none",t.download=o,t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}function t(e,t,d){var i,l;void 0===d&&(d="download");var w=(null===(i=/[^\/]+$/.exec(e))||void 0===i?void 0:i[0])||"";null===(l=/[^\.]+$/.exec(w))||void 0===l||l[0].toLowerCase(),"open"===d?window.open(e):"href"===d?window.location.href=e:"request"===d?o(e,t||w):n(e,t||w)}var d={version:"1.4.0",download:t,downloadUrlFile:o,openFile:n,saveFile:e},i="1.4.0";export{d as default,t as download,o as downloadUrlFile,n as openFile,e as saveFile,i as version};
function e(e,o){var n=window.URL||window.webkitURL||window,t=new Blob([e]),d=document.createElementNS("http://www.w3.org/1999/xhtml","a");d.href=n.createObjectURL(t),d.download=o,d.click()}function o(o,n){var t=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");t.open("GET",o,!0),t.responseType="blob",t.onload=function(){200===t.status&&e(t.response,n)},t.send()}function n(e,o,n){var t=document.createElement("a");t.style.display="none",t.download=o,t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}function t(e,t,d){var i,l;void 0===d&&(d="download");var w=(null===(i=/[^\/]+$/.exec(e))||void 0===i?void 0:i[0])||"";null===(l=/[^\.]+$/.exec(w))||void 0===l||l[0].toLowerCase(),"open"===d?window.open(e):"href"===d?window.location.href=e:"request"===d?o(e,t||w):n(e,t||w)}var d={version:"1.5.0",download:t,downloadUrlFile:o,openFile:n,saveFile:e},i="1.5.0";export{d as default,t as download,o as downloadUrlFile,n as openFile,e as saveFile,i as version};

@@ -84,3 +84,3 @@ /**

var index_default = {
version: '1.4.0',
version: '1.5.0',
download: download,

@@ -92,4 +92,4 @@ downloadUrlFile: downloadUrlFile,

var version = '1.4.0';
var version = '1.5.0';
export { index_default as default, download, downloadUrlFile, openFile, saveFile, version };
/*!
* use-downloads v1.4.0
* use-downloads v1.5.0
* A js utilities that contains all the methods for downloading files
* (c) 2021-2023 saqqdy<https://github.com/saqqdy>
* (c) 2022-2023 saqqdy<https://github.com/saqqdy>
* Released under the MIT License.

@@ -93,3 +93,3 @@ */

var index_default = {
version: '1.4.0',
version: '1.5.0',
download: download,

@@ -96,0 +96,0 @@ downloadUrlFile: downloadUrlFile,

/*!
* use-downloads v1.4.0
* use-downloads v1.5.0
* A js utilities that contains all the methods for downloading files
* (c) 2021-2023 saqqdy<https://github.com/saqqdy>
* (c) 2022-2023 saqqdy<https://github.com/saqqdy>
* Released under the MIT License.
*/
this.useDownloads=function(){"use strict";function e(e,o){var n=window.URL||window.webkitURL||window,t=new Blob([e]),d=document.createElementNS("http://www.w3.org/1999/xhtml","a");d.href=n.createObjectURL(t),d.download=o,d.click()}function o(o,n){var t=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");t.open("GET",o,!0),t.responseType="blob",t.onload=function(){200===t.status&&e(t.response,n)},t.send()}function n(e,o,n){var t=document.createElement("a");t.style.display="none",t.download=o,t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}return{version:"1.4.0",download:function(e,t,d){var i,l;void 0===d&&(d="download");var w=(null===(i=/[^\/]+$/.exec(e))||void 0===i?void 0:i[0])||"";null===(l=/[^\.]+$/.exec(w))||void 0===l||l[0].toLowerCase(),"open"===d?window.open(e):"href"===d?window.location.href=e:"request"===d?o(e,t||w):n(e,t||w)},downloadUrlFile:o,openFile:n,saveFile:e}}();
this.useDownloads=function(){"use strict";function e(e,o){var n=window.URL||window.webkitURL||window,t=new Blob([e]),d=document.createElementNS("http://www.w3.org/1999/xhtml","a");d.href=n.createObjectURL(t),d.download=o,d.click()}function o(o,n){var t=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");t.open("GET",o,!0),t.responseType="blob",t.onload=function(){200===t.status&&e(t.response,n)},t.send()}function n(e,o,n){var t=document.createElement("a");t.style.display="none",t.download=o,t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}return{version:"1.5.0",download:function(e,t,d){var i,l;void 0===d&&(d="download");var w=(null===(i=/[^\/]+$/.exec(e))||void 0===i?void 0:i[0])||"";null===(l=/[^\.]+$/.exec(w))||void 0===l||l[0].toLowerCase(),"open"===d?window.open(e):"href"===d?window.location.href=e:"request"===d?o(e,t||w):n(e,t||w)},downloadUrlFile:o,openFile:n,saveFile:e}}();
{
"name": "use-downloads",
"description": "A js utilities that contains all the methods for downloading files",
"version": "1.4.0",
"packageManager": "pnpm@8.6.3",
"version": "1.5.0",
"packageManager": "pnpm@8.7.6",
"main": "dist/index.cjs.js",

@@ -22,3 +22,2 @@ "module": "dist/index.esm-bundler.js",

"directories": {
"lib": "lib",
"dist": "dist",

@@ -28,3 +27,2 @@ "src": "src"

"files": [
"lib",
"dist",

@@ -34,5 +32,3 @@ "typings"

"devDependencies": {
"@microsoft/api-extractor": "^7.36.0",
"eslint": "^8.43.0",
"prettier": "^2.8.8"
"@microsoft/api-extractor": "^7.37.0"
},

@@ -39,0 +35,0 @@ "keywords": [

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