@cyberskill/shared 1.46.0 → 1.48.0

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.
Files changed (134) hide show
  1. package/README.md +12 -18
  2. package/dist/_tsup-dts-rollup.d.cts +413 -31
  3. package/dist/_tsup-dts-rollup.d.ts +413 -31
  4. package/dist/cli.cjs +2136 -1
  5. package/dist/cli.d.cts +2 -1
  6. package/dist/cli.d.ts +2 -1
  7. package/dist/cli.js +2056 -1
  8. package/dist/configs/commitlint/base.cjs +64 -1
  9. package/dist/configs/commitlint/base.js +7 -1
  10. package/dist/configs/eslint/base.cjs +121 -1
  11. package/dist/configs/eslint/base.js +52 -1
  12. package/dist/configs/eslint/nestjs.cjs +155 -1
  13. package/dist/configs/eslint/nestjs.js +85 -1
  14. package/dist/configs/eslint/nextjs.cjs +155 -1
  15. package/dist/configs/eslint/nextjs.js +85 -1
  16. package/dist/configs/eslint/nodejs.cjs +156 -1
  17. package/dist/configs/eslint/nodejs.js +86 -1
  18. package/dist/configs/eslint/vite-react.cjs +159 -1
  19. package/dist/configs/eslint/vite-react.js +89 -1
  20. package/dist/configs/graphql/graphql-codegen.cjs +125 -1
  21. package/dist/configs/graphql/graphql-codegen.js +64 -1
  22. package/dist/configs/graphql/index.cjs +126 -1
  23. package/dist/configs/graphql/index.js +64 -1
  24. package/dist/configs/i18n/react/i18next.cjs +80 -1
  25. package/dist/configs/i18n/react/i18next.js +7 -1
  26. package/dist/configs/i18n/react/index.cjs +81 -1
  27. package/dist/configs/i18n/react/index.js +7 -1
  28. package/dist/configs/index.cjs +232 -1
  29. package/dist/configs/index.js +166 -1
  30. package/dist/configs/lint-staged/base.cjs +64 -1
  31. package/dist/configs/lint-staged/base.js +7 -1
  32. package/dist/configs/vitest/react/e2e.cjs +128 -1
  33. package/dist/configs/vitest/react/e2e.js +59 -1
  34. package/dist/configs/vitest/react/unit.cjs +305 -1
  35. package/dist/configs/vitest/react/unit.js +228 -1
  36. package/dist/configs/vitest/react/unit.setup.cjs +60 -1
  37. package/dist/configs/vitest/react/unit.setup.js +8 -1
  38. package/dist/constants/index.cjs +678 -1
  39. package/dist/constants/index.d.cts +31 -1
  40. package/dist/constants/index.d.ts +31 -1
  41. package/dist/constants/index.js +469 -1
  42. package/dist/constants/path.cjs +423 -1
  43. package/dist/constants/path.d.cts +31 -1
  44. package/dist/constants/path.d.ts +31 -1
  45. package/dist/constants/path.js +218 -1
  46. package/dist/constants/response-status.cjs +313 -1
  47. package/dist/constants/response-status.js +252 -1
  48. package/dist/index.cjs +4546 -1
  49. package/dist/index.d.cts +51 -6
  50. package/dist/index.d.ts +51 -6
  51. package/dist/index.js +4133 -1
  52. package/dist/nodejs/index.cjs +2138 -1
  53. package/dist/nodejs/index.js +2054 -1
  54. package/dist/nodejs/mongo.cjs +2137 -1
  55. package/dist/nodejs/mongo.js +2054 -1
  56. package/dist/react/apollo-client.cjs +177 -1
  57. package/dist/react/apollo-client.js +116 -1
  58. package/dist/react/index.cjs +990 -1
  59. package/dist/react/index.js +876 -1
  60. package/dist/react/loading.cjs +301 -1
  61. package/dist/react/loading.js +216 -1
  62. package/dist/react/next-intl.cjs +744 -1
  63. package/dist/react/next-intl.js +655 -1
  64. package/dist/react/storage.cjs +631 -1
  65. package/dist/react/storage.js +558 -1
  66. package/dist/typescript/api-response.cjs +48 -1
  67. package/dist/typescript/apollo.cjs +48 -1
  68. package/dist/typescript/command.cjs +68 -1
  69. package/dist/typescript/command.d.cts +4 -0
  70. package/dist/typescript/command.d.ts +4 -0
  71. package/dist/typescript/command.js +7 -1
  72. package/dist/typescript/config.cjs +48 -1
  73. package/dist/typescript/fs.cjs +48 -0
  74. package/dist/typescript/fs.d.cts +1 -0
  75. package/dist/typescript/fs.d.ts +1 -0
  76. package/dist/typescript/fs.js +0 -0
  77. package/dist/typescript/graphql-codegen.cjs +48 -1
  78. package/dist/typescript/index.cjs +175 -1
  79. package/dist/typescript/index.d.cts +5 -0
  80. package/dist/typescript/index.d.ts +5 -0
  81. package/dist/typescript/index.js +151 -1
  82. package/dist/typescript/loading.cjs +48 -1
  83. package/dist/typescript/log.cjs +48 -1
  84. package/dist/typescript/mongo.cjs +164 -1
  85. package/dist/typescript/mongo.js +145 -1
  86. package/dist/typescript/next-intl.cjs +48 -1
  87. package/dist/typescript/react.cjs +48 -1
  88. package/dist/typescript/serializer.cjs +48 -1
  89. package/dist/typescript/string.cjs +48 -1
  90. package/dist/utils/command.cjs +1387 -1
  91. package/dist/utils/command.d.cts +2 -0
  92. package/dist/utils/command.d.ts +2 -0
  93. package/dist/utils/command.js +1287 -1
  94. package/dist/utils/common.cjs +300 -1
  95. package/dist/utils/common.js +219 -1
  96. package/dist/utils/config.cjs +146 -1
  97. package/dist/utils/config.js +89 -1
  98. package/dist/utils/fs.cjs +118 -1
  99. package/dist/utils/fs.d.cts +4 -1
  100. package/dist/utils/fs.d.ts +4 -1
  101. package/dist/utils/fs.js +37 -1
  102. package/dist/utils/index-nodejs.cjs +1738 -1
  103. package/dist/utils/index-nodejs.d.cts +15 -5
  104. package/dist/utils/index-nodejs.d.ts +15 -5
  105. package/dist/utils/index-nodejs.js +1571 -1
  106. package/dist/utils/index.cjs +727 -1
  107. package/dist/utils/index.js +625 -1
  108. package/dist/utils/log.cjs +330 -1
  109. package/dist/utils/log.js +269 -1
  110. package/dist/utils/package.cjs +941 -0
  111. package/dist/utils/package.d.cts +3 -0
  112. package/dist/utils/package.d.ts +3 -0
  113. package/dist/utils/package.js +857 -0
  114. package/dist/utils/path.cjs +291 -0
  115. package/dist/utils/path.d.cts +6 -0
  116. package/dist/utils/path.d.ts +6 -0
  117. package/dist/utils/path.js +191 -0
  118. package/dist/utils/serializer.cjs +91 -1
  119. package/dist/utils/serializer.js +30 -1
  120. package/dist/utils/storage-client.cjs +349 -1
  121. package/dist/utils/storage-client.js +276 -1
  122. package/dist/utils/storage-server.cjs +636 -1
  123. package/dist/utils/storage-server.d.cts +1 -1
  124. package/dist/utils/storage-server.d.ts +1 -1
  125. package/dist/utils/storage-server.js +550 -1
  126. package/dist/utils/string.cjs +152 -1
  127. package/dist/utils/string.js +75 -1
  128. package/dist/utils/validate.cjs +90 -1
  129. package/dist/utils/validate.js +33 -1
  130. package/package.json +19 -16
  131. package/dist/utils/npm-package.cjs +0 -1
  132. package/dist/utils/npm-package.d.cts +0 -4
  133. package/dist/utils/npm-package.d.ts +0 -4
  134. package/dist/utils/npm-package.js +0 -1
@@ -1 +1,89 @@
1
- function r(r,e){if(e==null||e>r.length)e=r.length;for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function e(e){if(Array.isArray(e))return r(e)}function t(r,e,t){if(e in r){Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true})}else{r[e]=t}return r}function n(r){if(typeof Symbol!=="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};var o=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))}o.forEach(function(e){t(r,e,n[e])})}return r}function a(r){return e(r)||n(r)||f(r)||o()}function i(r){"@swc/helpers - typeof";return r&&typeof Symbol!=="undefined"&&r.constructor===Symbol?"symbol":typeof r}function f(e,t){if(!e)return;if(typeof e==="string")return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}function c(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++){e[t]=arguments[t]}var n=function(r,e){var t=u({},r);return Object.keys(e).forEach(function(r){if(!Object.hasOwnProperty.call(e,r))return;var o=e[r],u=t[r];Array.isArray(o)?t[r]=a(new Set(a(Array.isArray(u)?u:[]).concat(a(o)))):(typeof o==="undefined"?"undefined":i(o))=="object"&&o!==null&&!Array.isArray(o)?t[r]=n((typeof u==="undefined"?"undefined":i(u))=="object"&&u!==null&&!Array.isArray(u)?u:{},o):t[r]=o}),t};return e.flatMap(function(r){return Array.isArray(r)?r:[r]}).reduce(function(r,e){return n(r,e)},{})}export{c as deepMerge};
1
+ // src/utils/config.ts
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_without_holes(arr) {
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
9
+ }
10
+ function _define_property(obj, key, value) {
11
+ if (key in obj) {
12
+ Object.defineProperty(obj, key, {
13
+ value: value,
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true
17
+ });
18
+ } else {
19
+ obj[key] = value;
20
+ }
21
+ return obj;
22
+ }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _non_iterable_spread() {
27
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
28
+ }
29
+ function _object_spread(target) {
30
+ for(var i = 1; i < arguments.length; i++){
31
+ var source = arguments[i] != null ? arguments[i] : {};
32
+ var ownKeys = Object.keys(source);
33
+ if (typeof Object.getOwnPropertySymbols === "function") {
34
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
36
+ }));
37
+ }
38
+ ownKeys.forEach(function(key) {
39
+ _define_property(target, key, source[key]);
40
+ });
41
+ }
42
+ return target;
43
+ }
44
+ function _to_consumable_array(arr) {
45
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
46
+ }
47
+ function _type_of(obj) {
48
+ "@swc/helpers - typeof";
49
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
50
+ }
51
+ function _unsupported_iterable_to_array(o, minLen) {
52
+ if (!o) return;
53
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
54
+ var n = Object.prototype.toString.call(o).slice(8, -1);
55
+ if (n === "Object" && o.constructor) n = o.constructor.name;
56
+ if (n === "Map" || n === "Set") return Array.from(n);
57
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
58
+ }
59
+ function deepMerge() {
60
+ for(var _len = arguments.length, configs = new Array(_len), _key = 0; _key < _len; _key++){
61
+ configs[_key] = arguments[_key];
62
+ }
63
+ var merge = function(target, source) {
64
+ var result = _object_spread({}, target);
65
+ Object.keys(source).forEach(function(key) {
66
+ if (!Object.hasOwnProperty.call(source, key)) {
67
+ return;
68
+ }
69
+ var sourceValue = source[key];
70
+ var targetValue = result[key];
71
+ if (Array.isArray(sourceValue)) {
72
+ result[key] = _to_consumable_array(/* @__PURE__ */ new Set(_to_consumable_array(Array.isArray(targetValue) ? targetValue : []).concat(_to_consumable_array(sourceValue))));
73
+ } else if ((typeof sourceValue === "undefined" ? "undefined" : _type_of(sourceValue)) === "object" && sourceValue !== null && !Array.isArray(sourceValue)) {
74
+ result[key] = merge((typeof targetValue === "undefined" ? "undefined" : _type_of(targetValue)) === "object" && targetValue !== null && !Array.isArray(targetValue) ? targetValue : {}, sourceValue);
75
+ } else {
76
+ result[key] = sourceValue;
77
+ }
78
+ });
79
+ return result;
80
+ };
81
+ return configs.flatMap(function(config) {
82
+ return Array.isArray(config) ? config : [
83
+ config
84
+ ];
85
+ }).reduce(function(acc, config) {
86
+ return merge(acc, config);
87
+ }, {});
88
+ }
89
+ export { deepMerge };
package/dist/utils/fs.cjs CHANGED
@@ -1 +1,118 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.create;var t=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var o=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var i=function(e,r){for(var n in r)t(e,n,{get:r[n],enumerable:!0})},a=function(r,o,i,a){var l=true,c=false,s=undefined;if(o&&(typeof o==="undefined"?"undefined":e(o))=="object"||typeof o=="function")try{var y=function(){var e=p.value;!f.call(r,e)&&e!==i&&t(r,e,{get:function(){return o[e]},enumerable:!(a=n(o,e))||a.enumerable})};for(var v=u(o)[Symbol.iterator](),p;!(l=(p=v.next()).done);l=true)y()}catch(e){c=true;s=e}finally{try{if(!l&&v.return!=null){v.return()}}finally{if(c){throw s}}}return r};var l=function(e,n,u){return u=e!=null?r(o(e)):{},a(n||!e||!e.__esModule?t(u,"default",{value:e,enumerable:!0}):u,e)},c=function(e){return a(t({},"__esModule",{value:!0}),e)};var s={};i(s,{fileExists:function(){return v}});module.exports=c(s);var y=l(require("fs"),1),v=function(e){return y.existsSync(e)};0&&(module.exports={fileExists:fileExists});
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __export = function(target, all) {
13
+ for(var name in all)__defProp(target, name, {
14
+ get: all[name],
15
+ enumerable: true
16
+ });
17
+ };
18
+ var __copyProps = function(to, from, except, desc) {
19
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
20
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
21
+ try {
22
+ var _loop = function() {
23
+ var key = _step.value;
24
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
25
+ get: function() {
26
+ return from[key];
27
+ },
28
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
+ });
30
+ };
31
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
32
+ } catch (err) {
33
+ _didIteratorError = true;
34
+ _iteratorError = err;
35
+ } finally{
36
+ try {
37
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
38
+ _iterator.return();
39
+ }
40
+ } finally{
41
+ if (_didIteratorError) {
42
+ throw _iteratorError;
43
+ }
44
+ }
45
+ }
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = function(mod, isNodeMode, target) {
50
+ return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
55
+ value: mod,
56
+ enumerable: true
57
+ }) : target, mod);
58
+ };
59
+ var __toCommonJS = function(mod) {
60
+ return __copyProps(__defProp({}, "__esModule", {
61
+ value: true
62
+ }), mod);
63
+ };
64
+ // src/utils/fs.ts
65
+ var fs_exports = {};
66
+ __export(fs_exports, {
67
+ appendFileSync: function() {
68
+ return appendFileSync2;
69
+ },
70
+ existsSync: function() {
71
+ return existsSync2;
72
+ },
73
+ readFileSync: function() {
74
+ return readFileSync2;
75
+ },
76
+ writeFileSync: function() {
77
+ return writeFileSync2;
78
+ }
79
+ });
80
+ module.exports = __toCommonJS(fs_exports);
81
+ var fs = __toESM(require("fs"), 1);
82
+ var existsSync2 = function(filePath) {
83
+ return fs.existsSync(filePath);
84
+ };
85
+ function readFileSync2(filePath, options) {
86
+ var content = fs.readFileSync(filePath, "utf-8");
87
+ if (options === null || options === void 0 ? void 0 : options.asJson) {
88
+ try {
89
+ var parsed = JSON.parse(content);
90
+ if ((typeof parsed === "undefined" ? "undefined" : _type_of(parsed)) === "object" && parsed !== null) {
91
+ return parsed;
92
+ }
93
+ throw new Error("Parsed JSON is not an object or array");
94
+ } catch (e) {
95
+ throw new Error("Failed to parse JSON from file: ".concat(filePath));
96
+ }
97
+ }
98
+ return content;
99
+ }
100
+ function writeFileSync2(filePath, data) {
101
+ var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
102
+ var _options_isJson = options.isJson, isJson = _options_isJson === void 0 ? false : _options_isJson;
103
+ var content = isJson && (typeof data === "undefined" ? "undefined" : _type_of(data)) === "object" ? JSON.stringify(data, null, 4) : String(data);
104
+ fs.writeFileSync(filePath, content, "utf-8");
105
+ }
106
+ function appendFileSync2(filePath, data) {
107
+ var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
108
+ var _options_isJson = options.isJson, isJson = _options_isJson === void 0 ? false : _options_isJson;
109
+ var content = isJson && (typeof data === "undefined" ? "undefined" : _type_of(data)) === "object" ? JSON.stringify(data, null, 4) : String(data);
110
+ fs.appendFileSync(filePath, content, "utf-8");
111
+ }
112
+ // Annotate the CommonJS export names for ESM import in node:
113
+ 0 && (module.exports = {
114
+ appendFileSync: appendFileSync,
115
+ existsSync: existsSync,
116
+ readFileSync: readFileSync,
117
+ writeFileSync: writeFileSync
118
+ });
@@ -1 +1,4 @@
1
- export { fileExists_alias_1 as fileExists } from '../_tsup-dts-rollup.cjs';
1
+ export { readFileSync_alias_1 as readFileSync } from '../_tsup-dts-rollup.cjs';
2
+ export { writeFileSync_alias_1 as writeFileSync } from '../_tsup-dts-rollup.cjs';
3
+ export { appendFileSync_alias_1 as appendFileSync } from '../_tsup-dts-rollup.cjs';
4
+ export { existsSync_alias_1 as existsSync } from '../_tsup-dts-rollup.cjs';
@@ -1 +1,4 @@
1
- export { fileExists_alias_1 as fileExists } from '../_tsup-dts-rollup.js';
1
+ export { readFileSync_alias_1 as readFileSync } from '../_tsup-dts-rollup.js';
2
+ export { writeFileSync_alias_1 as writeFileSync } from '../_tsup-dts-rollup.js';
3
+ export { appendFileSync_alias_1 as appendFileSync } from '../_tsup-dts-rollup.js';
4
+ export { existsSync_alias_1 as existsSync } from '../_tsup-dts-rollup.js';
package/dist/utils/fs.js CHANGED
@@ -1 +1,37 @@
1
- import*as s from"node:fs";var o=function(o){return s.existsSync(o)};export{o as fileExists};
1
+ // src/utils/fs.ts
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ import * as fs from "node:fs";
7
+ var existsSync2 = function(filePath) {
8
+ return fs.existsSync(filePath);
9
+ };
10
+ function readFileSync2(filePath, options) {
11
+ var content = fs.readFileSync(filePath, "utf-8");
12
+ if (options === null || options === void 0 ? void 0 : options.asJson) {
13
+ try {
14
+ var parsed = JSON.parse(content);
15
+ if ((typeof parsed === "undefined" ? "undefined" : _type_of(parsed)) === "object" && parsed !== null) {
16
+ return parsed;
17
+ }
18
+ throw new Error("Parsed JSON is not an object or array");
19
+ } catch (e) {
20
+ throw new Error("Failed to parse JSON from file: ".concat(filePath));
21
+ }
22
+ }
23
+ return content;
24
+ }
25
+ function writeFileSync2(filePath, data) {
26
+ var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
27
+ var _options_isJson = options.isJson, isJson = _options_isJson === void 0 ? false : _options_isJson;
28
+ var content = isJson && (typeof data === "undefined" ? "undefined" : _type_of(data)) === "object" ? JSON.stringify(data, null, 4) : String(data);
29
+ fs.writeFileSync(filePath, content, "utf-8");
30
+ }
31
+ function appendFileSync2(filePath, data) {
32
+ var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
33
+ var _options_isJson = options.isJson, isJson = _options_isJson === void 0 ? false : _options_isJson;
34
+ var content = isJson && (typeof data === "undefined" ? "undefined" : _type_of(data)) === "object" ? JSON.stringify(data, null, 4) : String(data);
35
+ fs.appendFileSync(filePath, content, "utf-8");
36
+ }
37
+ export { appendFileSync2 as appendFileSync, existsSync2 as existsSync, readFileSync2 as readFileSync, writeFileSync2 as writeFileSync };