@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 +2 -4
- package/es/log.js +2 -5
- package/lib/log.d.ts +2 -4
- package/lib/log.js +4 -3
- package/package.json +1 -1
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
|
|
10
|
-
|
|
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
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
51
52
|
sendWarningLog
|
|
52
|
-
};
|
|
53
|
+
});
|