async-preloader
Advanced tools
Comparing version 6.1.2 to 7.0.0
@@ -5,2 +5,16 @@ # Changelog | ||
# [7.0.0](https://github.com/dmnsgn/async-preloader/compare/v6.1.2...v7.0.0) (2022-06-13) | ||
### Bug Fixes | ||
* exclude android and chrome from isSafari regex ([acf8770](https://github.com/dmnsgn/async-preloader/commit/acf87707d3a6cbb099b990b88a1bb4de42d7c4d6)) | ||
### BREAKING CHANGES | ||
* changes audio and video loading in Chrome | ||
## [6.1.2](https://github.com/dmnsgn/async-preloader/compare/v6.1.1...v6.1.2) (2022-04-02) | ||
@@ -7,0 +21,0 @@ |
import FontFaceObserver from "fontfaceobserver-es"; | ||
import { LoaderKey, } from "./types.js"; | ||
const isSafari = typeof navigator !== "undefined" && | ||
navigator && | ||
navigator.userAgent.indexOf("Safari") > -1; | ||
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) === true; | ||
/** | ||
@@ -7,0 +5,0 @@ * AsyncPreloader: assets preloader using ES2017 async/await and fetch. |
{ | ||
"name": "async-preloader", | ||
"version": "6.1.2", | ||
"version": "7.0.0", | ||
"description": "Assets preloader using ES2017 async/await and fetch.", | ||
@@ -69,14 +69,15 @@ "keywords": [ | ||
"fontfaceobserver-es": "^3.3.3", | ||
"tslib": "^2.3.1" | ||
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/css-font-loading-module": "^0.0.7", | ||
"@types/expect-puppeteer": "^4.4.7", | ||
"@types/jest": "^27.4.1", | ||
"@types/jest-environment-puppeteer": "^5.0.0", | ||
"@types/node": "^17.0.23", | ||
"@types/puppeteer": "^5.4.5", | ||
"@xmldom/xmldom": "^0.8.1", | ||
"es-module-shims": "^1.5.2", | ||
"jest": "^27.5.1", | ||
"@types/expect-puppeteer": "^5.0.0", | ||
"@types/jest": "^28.1.1", | ||
"@types/jest-environment-puppeteer": "^5.0.2", | ||
"@types/node": "^17.0.42", | ||
"@types/puppeteer": "^5.4.6", | ||
"@xmldom/xmldom": "^0.8.2", | ||
"es-module-shims": "^1.5.6", | ||
"jest": "^28.1.1", | ||
"jest-environment-jsdom": "^28.1.1", | ||
"jest-puppeteer": "^6.1.0", | ||
@@ -86,7 +87,7 @@ "jest-ts-webcompat-resolver": "^1.0.0", | ||
"mime-types": "^2.1.35", | ||
"node-fetch": "^3.2.3", | ||
"puppeteer": "^13.5.2", | ||
"snowdev": "^1.10.0", | ||
"ts-jest": "^27.1.4", | ||
"typescript": "^4.6.3" | ||
"node-fetch": "^3.2.6", | ||
"puppeteer": "^14.3.0", | ||
"snowdev": "^1.11.0", | ||
"ts-jest": "^28.0.4", | ||
"typescript": "^4.7.3" | ||
}, | ||
@@ -93,0 +94,0 @@ "engines": { |
@@ -14,5 +14,3 @@ import FontFaceObserver from "fontfaceobserver-es"; | ||
const isSafari = | ||
typeof navigator !== "undefined" && | ||
navigator && | ||
navigator.userAgent.indexOf("Safari") > -1; | ||
/^((?!chrome|android).)*safari/i.test(navigator.userAgent) === true; | ||
@@ -19,0 +17,0 @@ /** |
Sorry, the diff of this file is not supported yet
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
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
67256
19
1247
Updatedtslib@^2.4.0