@pisell/utils 1.0.3 → 1.0.4

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/es/log.d.ts CHANGED
@@ -6,7 +6,5 @@ interface sendWebhookProps {
6
6
  title: string;
7
7
  content: contentItem[];
8
8
  }
9
- declare const _default: {
10
- sendWarningLog: ({ title, content }: sendWebhookProps) => Promise<any>;
11
- };
12
- export default _default;
9
+ export declare const sendWarningLog: ({ title, content }: sendWebhookProps) => Promise<any>;
10
+ export {};
package/es/log.js CHANGED
@@ -14,7 +14,7 @@ var createFeishuMessageContent = function createFeishuMessageContent(contentArr)
14
14
  }];
15
15
  }));
16
16
  };
17
- var sendWarningLog = /*#__PURE__*/function () {
17
+ export var sendWarningLog = /*#__PURE__*/function () {
18
18
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
19
19
  var title, content, contentStr, response;
20
20
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -48,7 +48,4 @@ var sendWarningLog = /*#__PURE__*/function () {
48
48
  return function sendWarningLog(_x) {
49
49
  return _ref2.apply(this, arguments);
50
50
  };
51
- }();
52
- export default {
53
- sendWarningLog: sendWarningLog
54
- };
51
+ }();
package/lib/log.d.ts CHANGED
@@ -6,7 +6,5 @@ interface sendWebhookProps {
6
6
  title: string;
7
7
  content: contentItem[];
8
8
  }
9
- declare const _default: {
10
- sendWarningLog: ({ title, content }: sendWebhookProps) => Promise<any>;
11
- };
12
- export default _default;
9
+ export declare const sendWarningLog: ({ title, content }: sendWebhookProps) => Promise<any>;
10
+ export {};
package/lib/log.js CHANGED
@@ -19,7 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/log.ts
20
20
  var log_exports = {};
21
21
  __export(log_exports, {
22
- default: () => log_default
22
+ sendWarningLog: () => sendWarningLog
23
23
  });
24
24
  module.exports = __toCommonJS(log_exports);
25
25
  var import_constants = require("./constants");
@@ -47,6 +47,7 @@ var sendWarningLog = async ({ title, content }) => {
47
47
  });
48
48
  return await response.json();
49
49
  };
50
- var log_default = {
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
51
52
  sendWarningLog
52
- };
53
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/utils",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",