watermark-js-plus 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +68 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.esm.js +68 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.iife.js +68 -24
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.umd.js +68 -24
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/types/src/core/blind.d.ts +1 -1
- package/dist/types/src/core/watermark.d.ts +2 -2
- package/dist/types/src/utils/index.d.ts +1 -1
- package/dist/types/src/utils/initialization.d.ts +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeOptionsMode, WatermarkOptions } from '../types';
|
|
1
|
+
import type { ChangeOptionsMode, WatermarkOptions } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Watermark class
|
|
4
4
|
*/
|
|
@@ -32,7 +32,7 @@ declare class Watermark {
|
|
|
32
32
|
* Delete this watermark.
|
|
33
33
|
*/
|
|
34
34
|
destroy(): void;
|
|
35
|
-
check(): void
|
|
35
|
+
check(): Promise<void>;
|
|
36
36
|
private initConfigData;
|
|
37
37
|
private changeParentElement;
|
|
38
38
|
private validateUnique;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomContentSVGType, WatermarkOptions } from '../types';
|
|
1
|
+
import type { CustomContentSVGType, WatermarkOptions } from '../types';
|
|
2
2
|
export declare const convertImage: (canvas: HTMLCanvasElement) => string;
|
|
3
3
|
export declare const isFunction: (value: Function) => boolean;
|
|
4
4
|
export declare const isUndefined: (value: any) => boolean;
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "watermark-js-plus",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "watermark for the browser",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean:dist": "rimraf dist",
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
7
|
"prepare": "husky install",
|
|
9
8
|
"lint": "npx eslint \"src/*.{ts,js}\"",
|
|
10
9
|
"dev": "concurrently \"npm run src:dev\" \"npm run docs:dev\"",
|
|
@@ -77,12 +76,12 @@
|
|
|
77
76
|
"@rollup/plugin-terser": "0.4.1",
|
|
78
77
|
"@rollup/plugin-typescript": "^11.1.0",
|
|
79
78
|
"@types/markdown-it": "^12.2.3",
|
|
80
|
-
"@typescript-eslint/parser": "^5.59.
|
|
79
|
+
"@typescript-eslint/parser": "^5.59.5",
|
|
81
80
|
"@vue/theme": "^2.2.1",
|
|
82
81
|
"concurrently": "^8.0.1",
|
|
83
82
|
"conventional-changelog-angular": "^5.0.13",
|
|
84
83
|
"conventional-changelog-cli": "^2.2.2",
|
|
85
|
-
"core-js": "^3.30.
|
|
84
|
+
"core-js": "^3.30.2",
|
|
86
85
|
"element-plus": "^2.3.4",
|
|
87
86
|
"eslint": "^8.40.0",
|
|
88
87
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
@@ -92,10 +91,11 @@
|
|
|
92
91
|
"lint-staged": "^13.2.2",
|
|
93
92
|
"lodash": "^4.17.21",
|
|
94
93
|
"markdown-it": "^13.0.1",
|
|
95
|
-
"
|
|
94
|
+
"rimraf": "^5.0.0",
|
|
95
|
+
"rollup": "^3.21.6",
|
|
96
96
|
"rollup-plugin-filesize": "^10.0.0",
|
|
97
97
|
"rollup-plugin-your-function": "^0.5.1",
|
|
98
|
-
"terser": "^5.17.
|
|
98
|
+
"terser": "^5.17.3",
|
|
99
99
|
"typescript": "^5.0.4",
|
|
100
100
|
"unplugin-element-plus": "^0.7.1",
|
|
101
101
|
"vitepress": "^1.0.0-alpha.75"
|