@waline/client 2.0.0 → 2.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/client",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "client for waline comment system",
5
5
  "keywords": [
6
6
  "valine",
@@ -10,7 +10,7 @@ import type { WalineInitOptions } from '../typings';
10
10
  export { WalineInstance } from '../init';
11
11
 
12
12
  warning(
13
- ' This is a legacy package compatable with Valine and Waline@v1, please switch to Waline@v2 using https://<CDN.LINK>/@waline/client@next/dist/waline.js instead!'
13
+ ' This is a legacy package compatable with Valine and Waline@v1, please switch to Waline@v2 using https://<CDN.LINK>/@waline/client/dist/waline.js instead!'
14
14
  );
15
15
 
16
16
  // inject css styles
@@ -18,7 +18,7 @@ warning(
18
18
  const link = document.createElement('link');
19
19
 
20
20
  link.rel = 'stylesheet';
21
- link.href = '//cdn.jsdelivr.net/npm/@waline/client@next/dist/waline.css';
21
+ link.href = '//cdn.jsdelivr.net/npm/@waline/client/dist/waline.css';
22
22
 
23
23
  document.head.appendChild(link);
24
24
 
@@ -41,4 +41,4 @@ export interface WalineInitOptions extends Omit<WalineProps, 'path'> {
41
41
  }
42
42
 
43
43
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
- export type WalineAbort = (reson: any) => void;
44
+ export type WalineAbort = (reason?: any) => void;