use-downloads
Advanced tools
Comparing version 1.1.0 to 1.3.0-beta.1
@@ -86,3 +86,3 @@ 'use strict'; | ||
var index_default = { | ||
version: '1.1.0', | ||
version: '1.3.0-beta.1', | ||
download: download, | ||
@@ -89,0 +89,0 @@ downloadUrlFile: downloadUrlFile, |
/*! | ||
* use-downloads v1.1.0 | ||
* use-downloads v1.3.0-beta.1 | ||
* A js utilities that contains all the methods for downloading files | ||
* (c) 2021-2023 saqqdy | ||
* (c) 2021-2023 saqqdy<https://github.com/saqqdy> | ||
* Released under the MIT License. | ||
@@ -90,3 +90,3 @@ */ | ||
var index_default = { | ||
version: '1.1.0', | ||
version: '1.3.0-beta.1', | ||
download: download, | ||
@@ -98,4 +98,4 @@ downloadUrlFile: downloadUrlFile, | ||
var version = '1.1.0'; | ||
var version = '1.3.0-beta.1'; | ||
export { index_default as default, download, downloadUrlFile, openFile, saveFile, version }; |
/*! | ||
* use-downloads v1.1.0 | ||
* use-downloads v1.3.0-beta.1 | ||
* A js utilities that contains all the methods for downloading files | ||
* (c) 2021-2023 saqqdy | ||
* (c) 2021-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.1.0",download:t,downloadUrlFile:o,openFile:n,saveFile:e},i="1.1.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,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}; |
@@ -84,3 +84,3 @@ /** | ||
var index_default = { | ||
version: '1.1.0', | ||
version: '1.3.0-beta.1', | ||
download: download, | ||
@@ -92,4 +92,4 @@ downloadUrlFile: downloadUrlFile, | ||
var version = '1.1.0'; | ||
var version = '1.3.0-beta.1'; | ||
export { index_default as default, download, downloadUrlFile, openFile, saveFile, version }; |
/*! | ||
* use-downloads v1.1.0 | ||
* use-downloads v1.3.0-beta.1 | ||
* A js utilities that contains all the methods for downloading files | ||
* (c) 2021-2023 saqqdy | ||
* (c) 2021-2023 saqqdy<https://github.com/saqqdy> | ||
* Released under the MIT License. | ||
*/ | ||
this.download = (function () { | ||
this.useDownloads = (function () { | ||
'use strict'; | ||
@@ -93,3 +93,3 @@ | ||
var index_default = { | ||
version: '1.1.0', | ||
version: '1.3.0-beta.1', | ||
download: download, | ||
@@ -96,0 +96,0 @@ downloadUrlFile: downloadUrlFile, |
/*! | ||
* use-downloads v1.1.0 | ||
* use-downloads v1.3.0-beta.1 | ||
* A js utilities that contains all the methods for downloading files | ||
* (c) 2021-2023 saqqdy | ||
* (c) 2021-2023 saqqdy<https://github.com/saqqdy> | ||
* Released under the MIT License. | ||
*/ | ||
this.download=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.1.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.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}}(); |
185
package.json
{ | ||
"name": "use-downloads", | ||
"description": "A js utilities that contains all the methods for downloading files", | ||
"version": "1.1.0", | ||
"packageManager": "pnpm@8.5.1", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm-bundler.js", | ||
"browser": "dist/index.esm-browser.js", | ||
"unpkg": "dist/index.global.js", | ||
"jsdelivr": "dist/index.global.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.esm-bundler.js", | ||
"require": "./dist/index.cjs.js", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"directories": { | ||
"lib": "lib", | ||
"dist": "dist", | ||
"src": "src" | ||
}, | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"typings" | ||
], | ||
"scripts": { | ||
"gen:version": "tscjs scripts/version", | ||
"tag:version": "tscjs scripts/tag", | ||
"build": "run-s clean build:{bundle,types}", | ||
"build:bundle": "tscjs scripts/build", | ||
"build:types": "tsc -p src/tsconfig.json && pnpm roll-types", | ||
"build:docs": "rm-all docs && typedoc && prettier --write \"**/*.md\"", | ||
"deploy": "sh scripts/deploy.sh", | ||
"roll-types": "api-extractor run && rm-all temp", | ||
"watch": "pnpm build:bundle -w", | ||
"pub": "tscjs scripts/publish", | ||
"unpub": "tscjs scripts/unpublish", | ||
"sync": "tscjs scripts/sync", | ||
"workflow:publish-test": "zx scripts/workflow.mjs", | ||
"clean": "rm-all dist es lib", | ||
"dist": "run-s eslint prettier build", | ||
"test-unit": "jest --filter ./scripts/filter-unit.js", | ||
"eslint": "eslint --fix .", | ||
"prettier": "prettier --write \"**/*.{js,ts,jsx,tsx,yml,json,md}\"", | ||
"pub.bak": "git add . && git commit -m $npm_package_version && git pull && git push" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.8", | ||
"@babel/preset-env": "^7.21.5", | ||
"@babel/preset-typescript": "^7.21.5", | ||
"@eslint-sets/eslint-config-ts": "^5.2.0", | ||
"@microsoft/api-extractor": "^7.34.9", | ||
"@node-kit/extra.fs": "^2.5.1", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
"@rollup/plugin-commonjs": "^25.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.2", | ||
"@rollup/plugin-replace": "^5.0.2", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@rollup/plugin-typescript": "^11.1.1", | ||
"@types/activex-excel": "^14.0.6", | ||
"@types/babel__core": "^7.20.0", | ||
"@types/node": "^20.2.0", | ||
"core-js": "^3.30.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.40.0", | ||
"fast-glob": "^3.2.12", | ||
"load-yml": "^1.3.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.8.8", | ||
"prettier-config-common": "^1.4.0", | ||
"reinstaller": "^3.0.0", | ||
"rm-all": "^1.0.0", | ||
"rollup": "^3.22.0", | ||
"rollup-plugin-filesize": "^10.0.0", | ||
"rollup-plugin-visualizer": "^5.9.0", | ||
"tsnd": "^1.1.0", | ||
"typescript": "^5.0.4", | ||
"zx": "^7.2.2" | ||
}, | ||
"engines": { | ||
"node": ">=12.20" | ||
}, | ||
"pnpm": { | ||
"peerDependencyRules": { | ||
"ignoreMissing": [ | ||
"webpack" | ||
], | ||
"allowedVersions": { | ||
"eslint": "^8.0.0" | ||
} | ||
} | ||
}, | ||
"keywords": [ | ||
"use-downloads", | ||
"download", | ||
"frontend", | ||
"use-download", | ||
"download-kit", | ||
"download-all", | ||
"saqqdy" | ||
], | ||
"license": "MIT", | ||
"author": "saqqdy<https://github.com/saqqdy>", | ||
"homepage": "https://github.com/saqqdy/use-downloads#readme", | ||
"bugs": { | ||
"url": "https://github.com/saqqdy/use-downloads/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/saqqdy/use-downloads.git" | ||
} | ||
} | ||
"name": "use-downloads", | ||
"description": "A js utilities that contains all the methods for downloading files", | ||
"version": "1.3.0-beta.1", | ||
"packageManager": "pnpm@8.6.0", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm-bundler.js", | ||
"browser": "dist/index.esm-browser.js", | ||
"unpkg": "dist/index.global.prod.js", | ||
"jsdelivr": "dist/index.global.prod.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.esm-bundler.js", | ||
"require": "./dist/index.cjs.js", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"directories": { | ||
"lib": "lib", | ||
"dist": "dist", | ||
"src": "src" | ||
}, | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"typings" | ||
], | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.35.1", | ||
"eslint": "^8.42.0", | ||
"prettier": "^2.8.8" | ||
}, | ||
"pnpm": { | ||
"peerDependencyRules": { | ||
"ignoreMissing": [ | ||
"@babel/core", | ||
"webpack" | ||
], | ||
"allowedVersions": {} | ||
} | ||
}, | ||
"keywords": [ | ||
"use-downloads", | ||
"load-javascript", | ||
"load-script", | ||
"load-js", | ||
"load-image", | ||
"load-style", | ||
"load-css", | ||
"saqqdy" | ||
], | ||
"license": "MIT", | ||
"author": "saqqdy <https://github.com/saqqdy>", | ||
"homepage": "https://github.com/saqqdy/uni-use/tree/master/packages/downloads#readme", | ||
"bugs": { | ||
"url": "https://github.com/saqqdy/uni-use/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/saqqdy/uni-use.git", | ||
"directory": "packages/downloads" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org", | ||
"access": "public" | ||
} | ||
} |
@@ -57,3 +57,3 @@ <div style="text-align: center;" align="center"> | ||
<!-- head --> | ||
<script src="https://unpkg.com/use-downloads@1.0.0/dist/index.global.prod.js"></script> | ||
<script src="https://unpkg.com/use-downloads@1.2.0/dist/index.global.prod.js"></script> | ||
``` | ||
@@ -63,3 +63,3 @@ | ||
Please open an issue [here](https://github.com/saqqdy/use-downloads/issues). | ||
Please open an issue [here](https://github.com/saqqdy/uni-use/issues). | ||
@@ -82,3 +82,3 @@ ## License | ||
[license-url]: LICENSE | ||
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_use-downloads | ||
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_use-downloads | ||
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_uni-use | ||
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_uni-use |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
20785
1