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.3.0-beta.1 to 1.3.0

2

dist/index.cjs.js

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

var index_default = {
version: '1.3.0-beta.1',
version: '1.3.0',
download: download,

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

/*!
* use-downloads v1.3.0-beta.1
* use-downloads v1.3.0
* A js utilities that contains all the methods for downloading files

@@ -90,3 +90,3 @@ * (c) 2021-2023 saqqdy<https://github.com/saqqdy>

var index_default = {
version: '1.3.0-beta.1',
version: '1.3.0',
download: download,

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

var version = '1.3.0-beta.1';
var version = '1.3.0';
export { index_default as default, download, downloadUrlFile, openFile, saveFile, version };
/*!
* use-downloads v1.3.0-beta.1
* use-downloads v1.3.0
* A js utilities that contains all the methods for downloading files

@@ -7,2 +7,2 @@ * (c) 2021-2023 saqqdy<https://github.com/saqqdy>

*/
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,a;void 0===d&&(d="download");var l=(null===(i=/[^\/]+$/.exec(e))||void 0===i?void 0:i[0])||"";null===(a=/[^\.]+$/.exec(l))||void 0===a||a[0].toLowerCase(),"open"===d?window.open(e):"href"===d?window.location.href=e:"request"===d?o(e,t||l):n(e,t||l)}var d={version:"1.3.0-beta.1",download:t,downloadUrlFile:o,openFile:n,saveFile:e},i="1.3.0-beta.1";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.3.0",download:t,downloadUrlFile:o,openFile:n,saveFile:e},i="1.3.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.3.0-beta.1',
version: '1.3.0',
download: download,

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

var version = '1.3.0-beta.1';
var version = '1.3.0';
export { index_default as default, download, downloadUrlFile, openFile, saveFile, version };
/*!
* use-downloads v1.3.0-beta.1
* use-downloads v1.3.0
* A js utilities that contains all the methods for downloading files

@@ -93,3 +93,3 @@ * (c) 2021-2023 saqqdy<https://github.com/saqqdy>

var index_default = {
version: '1.3.0-beta.1',
version: '1.3.0',
download: download,

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

/*!
* use-downloads v1.3.0-beta.1
* use-downloads v1.3.0
* A js utilities that contains all the methods for downloading files

@@ -7,2 +7,2 @@ * (c) 2021-2023 saqqdy<https://github.com/saqqdy>

*/
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.3.0-beta.1",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.3.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.3.0-beta.1",
"version": "1.3.0",
"packageManager": "pnpm@8.6.0",

@@ -36,11 +36,2 @@ "main": "dist/index.cjs.js",

},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@babel/core",
"webpack"
],
"allowedVersions": {}
}
},
"keywords": [

@@ -47,0 +38,0 @@ "use-downloads",

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