html2canvas
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -5,2 +5,12 @@ # Changelog | ||
## [1.2.1](https://github.com/niklasvh/html2canvas/compare/v1.2.0...v1.2.1) (2021-08-05) | ||
### fix | ||
* none image (#2627) ([6651fc6](https://github.com/niklasvh/html2canvas/commit/6651fc6789d5902d171dc53b4094887870433018)), closes [#2627](https://github.com/niklasvh/html2canvas/issues/2627) | ||
* type import that is only available ts 3.8 or higher (#2629) ([c5c6fa0](https://github.com/niklasvh/html2canvas/commit/c5c6fa00d71f36ef963ba5170ebc7b668d39c407)), closes [#2629](https://github.com/niklasvh/html2canvas/issues/2629) | ||
# [1.2.0](https://github.com/niklasvh/html2canvas/compare/v1.1.5...v1.2.0) (2021-08-04) | ||
@@ -7,0 +17,0 @@ |
@@ -51,7 +51,8 @@ "use strict"; | ||
} | ||
throw new Error("Unsupported image type"); | ||
throw new Error("Unsupported image type " + value.type); | ||
} | ||
}; | ||
function isSupportedImage(value) { | ||
return value.type !== tokenizer_1.TokenType.FUNCTION || !!SUPPORTED_IMAGE_FUNCTIONS[value.name]; | ||
return (!(value.type === tokenizer_1.TokenType.IDENT_TOKEN && value.value === 'none') && | ||
(value.type !== tokenizer_1.TokenType.FUNCTION || !!SUPPORTED_IMAGE_FUNCTIONS[value.name])); | ||
} | ||
@@ -58,0 +59,0 @@ exports.isSupportedImage = isSupportedImage; |
@@ -1,2 +0,2 @@ | ||
import type { Context } from './context'; | ||
import { Context } from './context'; | ||
export declare class CacheStorage { | ||
@@ -3,0 +3,0 @@ private static _link?; |
@@ -9,3 +9,3 @@ { | ||
"browser": "dist/html2canvas.js", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"author": { | ||
@@ -12,0 +12,0 @@ "name": "Niklas von Hertzen", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
2320478
25289