@94ai/nf-notification 100.1.5 → 100.1.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.
|
@@ -456,7 +456,8 @@ let instance;
|
|
|
456
456
|
let instances = [];
|
|
457
457
|
let seed = 1;
|
|
458
458
|
const Notification = function(options) {
|
|
459
|
-
|
|
459
|
+
var _a;
|
|
460
|
+
if ((_a = vueDemi.Vue2.prototype) == null ? void 0 : _a.$isServer)
|
|
460
461
|
return;
|
|
461
462
|
options = merge({}, options);
|
|
462
463
|
const userOnClose = options.onClose;
|
|
@@ -454,7 +454,8 @@ let instance;
|
|
|
454
454
|
let instances = [];
|
|
455
455
|
let seed = 1;
|
|
456
456
|
const Notification = function(options) {
|
|
457
|
-
|
|
457
|
+
var _a;
|
|
458
|
+
if ((_a = Vue2.prototype) == null ? void 0 : _a.$isServer)
|
|
458
459
|
return;
|
|
459
460
|
options = merge({}, options);
|
|
460
461
|
const userOnClose = options.onClose;
|
package/package/main.ts
CHANGED
|
@@ -10,7 +10,7 @@ let instances: any[] = [];
|
|
|
10
10
|
let seed = 1;
|
|
11
11
|
|
|
12
12
|
const Notification = function(options) {
|
|
13
|
-
if (Vue2!.prototype
|
|
13
|
+
if (Vue2!.prototype?.$isServer) return;
|
|
14
14
|
options = merge({}, options);
|
|
15
15
|
const userOnClose = options.onClose;
|
|
16
16
|
const id = 'notification_' + seed++;
|
|
@@ -91,4 +91,4 @@ Notification.closeAll = function() {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
export default Notification;
|
|
94
|
+
export default Notification;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-notification",
|
|
3
|
-
"version": "100.1.
|
|
3
|
+
"version": "100.1.6",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zhongzhenjie <1476686104@qq.com>",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-theme-chalk": "^100.1.
|
|
17
|
+
"@94ai/nf-theme-chalk": "^100.1.6",
|
|
18
18
|
"vue-demi": "^0.14.5"
|
|
19
19
|
},
|
|
20
20
|
"peerDependenciesMeta": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"types": "lib/index.d.ts",
|
|
31
31
|
"main": "lib/nf-notification.cjs.cjs",
|
|
32
32
|
"module": "lib/nf-notification.esm-bundler.mjs",
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "9026240baa75f1b459275f767f772997d626686f"
|
|
34
34
|
}
|