@nocobase/plugin-notifications 0.12.0-alpha.5 → 0.13.0-alpha.10

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.
@@ -1,11 +1 @@
1
- (function(global, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@nocobase/client")) : typeof define === "function" && define.amd ? define(["exports", "@nocobase/client"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@nocobase/plugin-notifications"] = {}, global["@nocobase/client"]));
3
- })(this, function(exports2, client) {
4
- "use strict";
5
- class NotificationPlugin extends client.Plugin {
6
- async load() {
7
- }
8
- }
9
- exports2.default = NotificationPlugin;
10
- Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
11
- });
1
+ (function(e,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("@nocobase/client")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client"],n):(e=typeof globalThis!="undefined"?globalThis:e||self,n(e["@nocobase/plugin-notifications"]={},e["@nocobase/client"]))})(this,function(e,n){"use strict";var d=(e,n,o)=>new Promise((u,c)=>{var f=i=>{try{t(o.next(i))}catch(s){c(s)}},l=i=>{try{t(o.throw(i))}catch(s){c(s)}},t=i=>i.done?u(i.value):Promise.resolve(i.value).then(f,l);t((o=o.apply(e,n)).next())});class o extends n.Plugin{load(){return d(this,null,function*(){})}}e.default=o,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/index.js CHANGED
@@ -1,18 +1,39 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var server = require('./server');
6
-
7
-
8
-
9
- Object.defineProperty(exports, 'default', {
10
- enumerable: true,
11
- get: function () { return server__namespace.default; }
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ default: () => import_server.default
12
32
  });
13
- Object.keys(server).forEach(function (k) {
14
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
15
- enumerable: true,
16
- get: function () { return server[k]; }
17
- });
33
+ module.exports = __toCommonJS(src_exports);
34
+ __reExport(src_exports, require("./server"), module.exports);
35
+ var import_server = __toESM(require("./server"));
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ ...require("./server")
18
39
  });
@@ -1,10 +1,29 @@
1
- 'use strict';
2
-
3
- var models = require('../models');
4
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var notification_logs_exports = {};
19
+ __export(notification_logs_exports, {
20
+ default: () => notification_logs_default
21
+ });
22
+ module.exports = __toCommonJS(notification_logs_exports);
23
+ var import_models = require("../models");
5
24
  var notification_logs_default = {
6
25
  name: "notification_logs",
7
- model: models.NotificationLog,
26
+ model: import_models.NotificationLog,
8
27
  title: "\u901A\u77E5\u65E5\u5FD7",
9
28
  fields: [
10
29
  {
@@ -24,5 +43,3 @@ var notification_logs_default = {
24
43
  }
25
44
  ]
26
45
  };
27
-
28
- module.exports = notification_logs_default;
@@ -1,10 +1,29 @@
1
- 'use strict';
2
-
3
- var models = require('../models');
4
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var notification_services_exports = {};
19
+ __export(notification_services_exports, {
20
+ default: () => notification_services_default
21
+ });
22
+ module.exports = __toCommonJS(notification_services_exports);
23
+ var import_models = require("../models");
5
24
  var notification_services_default = {
6
25
  name: "notification_services",
7
- model: models.NotificationService,
26
+ model: import_models.NotificationService,
8
27
  title: "\u901A\u77E5\u670D\u52A1",
9
28
  fields: [
10
29
  {
@@ -24,5 +43,3 @@ var notification_services_default = {
24
43
  }
25
44
  ]
26
45
  };
27
-
28
- module.exports = notification_services_default;
@@ -1,10 +1,29 @@
1
- 'use strict';
2
-
3
- var models = require('../models');
4
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var notifications_exports = {};
19
+ __export(notifications_exports, {
20
+ default: () => notifications_default
21
+ });
22
+ module.exports = __toCommonJS(notifications_exports);
23
+ var import_models = require("../models");
5
24
  var notifications_default = {
6
25
  name: "notifications",
7
- model: models.Notification,
26
+ model: import_models.Notification,
8
27
  title: "\u901A\u77E5",
9
28
  fields: [
10
29
  {
@@ -41,5 +60,3 @@ var notifications_default = {
41
60
  }
42
61
  ]
43
62
  };
44
-
45
- module.exports = notifications_default;
@@ -1,11 +1,33 @@
1
- 'use strict';
2
-
3
- var server = require('./server');
4
-
5
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
-
7
- var server__default = /*#__PURE__*/_interopDefault(server);
8
-
9
-
10
-
11
- module.exports = server__default.default;
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var server_exports = {};
29
+ __export(server_exports, {
30
+ default: () => import_server.default
31
+ });
32
+ module.exports = __toCommonJS(server_exports);
33
+ var import_server = __toESM(require("./server"));
@@ -1,13 +1,38 @@
1
- 'use strict';
2
-
3
- var database = require('@nocobase/database');
4
- var lodash = require('lodash');
5
-
6
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
-
8
- var lodash__default = /*#__PURE__*/_interopDefault(lodash);
9
-
10
- class Notification extends database.Model {
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var Notification_exports = {};
29
+ __export(Notification_exports, {
30
+ Notification: () => Notification
31
+ });
32
+ module.exports = __toCommonJS(Notification_exports);
33
+ var import_database = require("@nocobase/database");
34
+ var import_lodash = __toESM(require("lodash"));
35
+ class Notification extends import_database.Model {
11
36
  get db() {
12
37
  return this.constructor["database"];
13
38
  }
@@ -76,10 +101,12 @@ class Notification extends database.Model {
76
101
  return this.subject;
77
102
  }
78
103
  getBody(data) {
79
- const compiled = lodash__default.default.template(this.body);
104
+ const compiled = import_lodash.default.template(this.body);
80
105
  const body = compiled(data);
81
106
  return body;
82
107
  }
83
108
  }
84
-
85
- exports.Notification = Notification;
109
+ // Annotate the CommonJS export names for ESM import in node:
110
+ 0 && (module.exports = {
111
+ Notification
112
+ });
@@ -1,8 +1,29 @@
1
- 'use strict';
2
-
3
- var database = require('@nocobase/database');
4
-
5
- class NotificationLog extends database.Model {
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var NotificationLog_exports = {};
19
+ __export(NotificationLog_exports, {
20
+ NotificationLog: () => NotificationLog
21
+ });
22
+ module.exports = __toCommonJS(NotificationLog_exports);
23
+ var import_database = require("@nocobase/database");
24
+ class NotificationLog extends import_database.Model {
6
25
  }
7
-
8
- exports.NotificationLog = NotificationLog;
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ NotificationLog
29
+ });
@@ -1,14 +1,39 @@
1
- 'use strict';
2
-
3
- var database = require('@nocobase/database');
4
- var nodemailer = require('nodemailer');
5
-
6
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
-
8
- var nodemailer__default = /*#__PURE__*/_interopDefault(nodemailer);
9
-
10
- class NotificationService extends database.Model {
11
- static createTransport = nodemailer__default.default.createTransport;
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var NotificationService_exports = {};
29
+ __export(NotificationService_exports, {
30
+ NotificationService: () => NotificationService
31
+ });
32
+ module.exports = __toCommonJS(NotificationService_exports);
33
+ var import_database = require("@nocobase/database");
34
+ var import_nodemailer = __toESM(require("nodemailer"));
35
+ class NotificationService extends import_database.Model {
36
+ static createTransport = import_nodemailer.default.createTransport;
12
37
  _transporter = null;
13
38
  get transporter() {
14
39
  if (this._transporter) {
@@ -25,5 +50,7 @@ class NotificationService extends database.Model {
25
50
  return this.transporter.sendMail(mailOptions);
26
51
  }
27
52
  }
28
-
29
- exports.NotificationService = NotificationService;
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ NotificationService
56
+ });
@@ -1,26 +1,25 @@
1
- 'use strict';
2
-
3
- var Notification = require('./Notification');
4
- var NotificationLog = require('./NotificationLog');
5
- var NotificationService = require('./NotificationService');
6
-
7
-
8
-
9
- Object.keys(Notification).forEach(function (k) {
10
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
11
- enumerable: true,
12
- get: function () { return Notification[k]; }
13
- });
14
- });
15
- Object.keys(NotificationLog).forEach(function (k) {
16
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
17
- enumerable: true,
18
- get: function () { return NotificationLog[k]; }
19
- });
20
- });
21
- Object.keys(NotificationService).forEach(function (k) {
22
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
23
- enumerable: true,
24
- get: function () { return NotificationService[k]; }
25
- });
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var models_exports = {};
16
+ module.exports = __toCommonJS(models_exports);
17
+ __reExport(models_exports, require("./Notification"), module.exports);
18
+ __reExport(models_exports, require("./NotificationLog"), module.exports);
19
+ __reExport(models_exports, require("./NotificationService"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("./Notification"),
23
+ ...require("./NotificationLog"),
24
+ ...require("./NotificationService")
26
25
  });
@@ -1,18 +1,41 @@
1
- 'use strict';
2
-
3
- var server = require('@nocobase/server');
4
- var path = require('path');
5
-
6
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
-
8
- var path__default = /*#__PURE__*/_interopDefault(path);
9
-
10
- class PluginNotifications extends server.Plugin {
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var server_exports = {};
29
+ __export(server_exports, {
30
+ default: () => PluginNotifications
31
+ });
32
+ module.exports = __toCommonJS(server_exports);
33
+ var import_server = require("@nocobase/server");
34
+ var import_path = __toESM(require("path"));
35
+ class PluginNotifications extends import_server.Plugin {
11
36
  async load() {
12
37
  await this.app.db.import({
13
- directory: path__default.default.resolve(__dirname, "collections")
38
+ directory: import_path.default.resolve(__dirname, "collections")
14
39
  });
15
40
  }
16
41
  }
17
-
18
- module.exports = PluginNotifications;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-notifications",
3
- "version": "0.12.0-alpha.5",
3
+ "version": "0.13.0-alpha.10",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./dist/server/index.js",
@@ -16,5 +16,5 @@
16
16
  "@nocobase/test": "0.x",
17
17
  "@nocobase/utils": "0.x"
18
18
  },
19
- "gitHead": "689cc16e83361c4d0b91907e0deac30bdb907692"
19
+ "gitHead": "5360ed81650f6895f3ed39aede2706467d55862c"
20
20
  }