tnp-core 21.0.166 → 21.0.167

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 (120) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/package.json +1 -1
  3. package/browser-prod/package.json +1 -1
  4. package/full-dts/build-info._auto-generated_.d.ts +24 -0
  5. package/full-dts/config.d.ts +171 -0
  6. package/full-dts/constants.d.ts +306 -0
  7. package/full-dts/core-cli.d.ts +8 -0
  8. package/full-dts/core-config.d.ts +5 -0
  9. package/full-dts/core-imports.d.ts +71 -0
  10. package/full-dts/core-models.d.ts +313 -0
  11. package/full-dts/core-project.d.ts +6 -0
  12. package/full-dts/cross-platform-path.d.ts +5 -0
  13. package/full-dts/env/env.angular-node-app.d.ts +67 -0
  14. package/full-dts/env/env.docs-webapp.d.ts +67 -0
  15. package/full-dts/env/env.electron-app.d.ts +67 -0
  16. package/full-dts/env/env.mobile-app.d.ts +67 -0
  17. package/full-dts/env/env.npm-lib-and-cli-tool.d.ts +67 -0
  18. package/full-dts/env/env.vscode-plugin.d.ts +67 -0
  19. package/full-dts/env/index.d.ts +6 -0
  20. package/full-dts/framework-name.d.ts +3 -0
  21. package/full-dts/global-logs.d.ts +5 -0
  22. package/full-dts/global-spinner.d.ts +27 -0
  23. package/full-dts/global-storage.d.ts +17 -0
  24. package/full-dts/global-task-manager.d.ts +20 -0
  25. package/full-dts/helpers.d.ts +325 -0
  26. package/full-dts/index.d.ts +53 -0
  27. package/full-dts/jsonc-parser.d.ts +4 -0
  28. package/full-dts/lodash.namespace.d.ts +308 -0
  29. package/full-dts/lowdb/adapters/Memory.d.ts +11 -0
  30. package/full-dts/lowdb/adapters/client/LocalStorage.d.ts +4 -0
  31. package/full-dts/lowdb/adapters/client/SessionStorage.d.ts +4 -0
  32. package/full-dts/lowdb/adapters/client/WebStorage.d.ts +8 -0
  33. package/full-dts/lowdb/adapters/node/DataFile.d.ts +25 -0
  34. package/full-dts/lowdb/adapters/node/JSONFile.d.ts +8 -0
  35. package/full-dts/lowdb/adapters/node/TextFile.d.ts +17 -0
  36. package/full-dts/lowdb/adapters/node/steno.d.ts +13 -0
  37. package/full-dts/lowdb/browser.d.ts +3 -0
  38. package/full-dts/lowdb/core/Low.d.ts +24 -0
  39. package/full-dts/lowdb/examples/server.d.ts +0 -0
  40. package/full-dts/lowdb/index.d.ts +3 -0
  41. package/full-dts/lowdb/node.d.ts +4 -0
  42. package/full-dts/lowdb/presets/browser.d.ts +3 -0
  43. package/full-dts/lowdb/presets/node.d.ts +4 -0
  44. package/full-dts/node-chalk-mock.d.ts +2 -0
  45. package/full-dts/node-path-mock.d.ts +25 -0
  46. package/full-dts/public-api.d.ts +4 -0
  47. package/full-dts/required-global-npm-packages.d.ts +44 -0
  48. package/full-dts/start-cli.d.ts +7 -0
  49. package/full-dts/taon-state-machine.d.ts +23 -0
  50. package/full-dts/utils-binary.d.ts +68 -0
  51. package/full-dts/utils-cli.d.ts +41 -0
  52. package/full-dts/utils-dot-file.d.ts +17 -0
  53. package/full-dts/utils-env.d.ts +101 -0
  54. package/full-dts/utils-etc-hosts.d.ts +28 -0
  55. package/full-dts/utils-exec-proc-vscode.d.ts +62 -0
  56. package/full-dts/utils-exec-proc.d.ts +100 -0
  57. package/full-dts/utils-files-folders.d.ts +106 -0
  58. package/full-dts/utils-http.d.ts +188 -0
  59. package/full-dts/utils-i18n.d.ts +38 -0
  60. package/full-dts/utils-imports.d.ts +0 -0
  61. package/full-dts/utils-imports.test.d.ts +0 -0
  62. package/full-dts/utils-json.d.ts +37 -0
  63. package/full-dts/utils-jwt.d.ts +12 -0
  64. package/full-dts/utils-md-docs.d.ts +21 -0
  65. package/full-dts/utils-network.d.ts +79 -0
  66. package/full-dts/utils-os.d.ts +126 -0
  67. package/full-dts/utils-passwords.d.ts +8 -0
  68. package/full-dts/utils-process-logger.d.ts +97 -0
  69. package/full-dts/utils-process.d.ts +93 -0
  70. package/full-dts/utils-progress.d.ts +26 -0
  71. package/full-dts/utils-projects.d.ts +327 -0
  72. package/full-dts/utils-projects.test.d.ts +0 -0
  73. package/full-dts/utils-secret-env.d.ts +41 -0
  74. package/full-dts/utils-start-async.d.ts +67 -0
  75. package/full-dts/utils-stdin-stdout-logger.d.ts +9 -0
  76. package/full-dts/utils-string-regex.d.ts +11 -0
  77. package/full-dts/utils-sudo.d.ts +32 -0
  78. package/full-dts/utils-temp-folder.d.ts +29 -0
  79. package/full-dts/utils-terminal.d.ts +171 -0
  80. package/full-dts/utils-time.d.ts +16 -0
  81. package/full-dts/utils-wait-notifier.d.ts +11 -0
  82. package/full-dts/utils.d.ts +100 -0
  83. package/lib/build-info._auto-generated_.d.ts +1 -1
  84. package/lib/build-info._auto-generated_.js +1 -1
  85. package/lib/config.d.ts +2 -2
  86. package/lib/core-imports.d.ts +1 -4
  87. package/lib/framework-name.d.ts +3 -3
  88. package/lib/package.json +1 -1
  89. package/lib/utils-binary.d.ts +1 -9
  90. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  91. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  92. package/lib-esm/lib/config.d.ts +2 -2
  93. package/lib-esm/lib/core-imports.d.ts +1 -4
  94. package/lib-esm/lib/framework-name.d.ts +3 -3
  95. package/lib-esm/lib/utils-binary.d.ts +1 -9
  96. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  97. package/lib-prod/build-info._auto-generated_.js +1 -1
  98. package/lib-prod/package.json +1 -1
  99. package/package.json +1 -1
  100. package/src.d.ts +1 -1
  101. package/websql/package.json +1 -1
  102. package/websql-prod/package.json +1 -1
  103. package/lib/jsonc-parse.test.d.ts +0 -1
  104. package/lib/utils-env.test.d.ts +0 -1
  105. package/lib/utils-json.test.d.ts +0 -1
  106. package/lib/utils-jwt.test.d.ts +0 -1
  107. package/lib/utils-md-docs.test.d.ts +0 -1
  108. package/lib/utils-progress.test.d.ts +0 -1
  109. /package/{lib-esm/lib/utils-imports.test.d.ts → full-dts/index._auto-generated_.d.ts} +0 -0
  110. /package/{lib-esm/lib/utils-projects.test.d.ts → full-dts/json10writer.d.ts} +0 -0
  111. /package/{lib-esm/lib → full-dts}/jsonc-parse.test.d.ts +0 -0
  112. /package/{lib-esm/lib/taon-state-machine.test.d.ts → full-dts/lowdb/examples/browser.d.ts} +0 -0
  113. /package/{lib/utils-imports.test.d.ts → full-dts/lowdb/examples/cli.d.ts} +0 -0
  114. /package/{lib/utils-projects.test.d.ts → full-dts/lowdb/examples/in-memory.d.ts} +0 -0
  115. /package/{lib → full-dts}/taon-state-machine.test.d.ts +0 -0
  116. /package/{lib-esm/lib → full-dts}/utils-env.test.d.ts +0 -0
  117. /package/{lib-esm/lib → full-dts}/utils-json.test.d.ts +0 -0
  118. /package/{lib-esm/lib → full-dts}/utils-jwt.test.d.ts +0 -0
  119. /package/{lib-esm/lib → full-dts}/utils-md-docs.test.d.ts +0 -0
  120. /package/{lib-esm/lib → full-dts}/utils-progress.test.d.ts +0 -0
@@ -0,0 +1,308 @@
1
+ import type * as lodash from 'lodash';
2
+ export declare namespace _ {
3
+ const add: typeof lodash.add;
4
+ const after: typeof lodash.after;
5
+ const ary: typeof lodash.ary;
6
+ const assign: typeof lodash.assign;
7
+ const assignIn: typeof lodash.assignIn;
8
+ const assignInWith: typeof lodash.assignInWith;
9
+ const assignWith: typeof lodash.assignWith;
10
+ const at: typeof lodash.at;
11
+ const attempt: typeof lodash.attempt;
12
+ const before: typeof lodash.before;
13
+ const bind: typeof lodash.bind;
14
+ const bindAll: typeof lodash.bindAll;
15
+ const bindKey: typeof lodash.bindKey;
16
+ const camelCase: typeof lodash.camelCase;
17
+ const capitalize: typeof lodash.capitalize;
18
+ const castArray: typeof lodash.castArray;
19
+ const ceil: typeof lodash.ceil;
20
+ const chain: typeof lodash.chain;
21
+ const chunk: typeof lodash.chunk;
22
+ const clamp: typeof lodash.clamp;
23
+ const clone: typeof lodash.clone;
24
+ const cloneDeep: typeof lodash.cloneDeep;
25
+ const cloneDeepWith: typeof lodash.cloneDeepWith;
26
+ const cloneWith: typeof lodash.cloneWith;
27
+ const compact: typeof lodash.compact;
28
+ const concat: typeof lodash.concat;
29
+ const cond: typeof lodash.cond;
30
+ const conforms: typeof lodash.conforms;
31
+ const conformsTo: typeof lodash.conformsTo;
32
+ const constant: typeof lodash.constant;
33
+ const countBy: typeof lodash.countBy;
34
+ const create: typeof lodash.create;
35
+ const curry: typeof lodash.curry;
36
+ const curryRight: typeof lodash.curryRight;
37
+ const debounce: typeof lodash.debounce;
38
+ const deburr: typeof lodash.deburr;
39
+ const defaultTo: typeof lodash.defaultTo;
40
+ const defaults: typeof lodash.defaults;
41
+ const defaultsDeep: typeof lodash.defaultsDeep;
42
+ const defer: typeof lodash.defer;
43
+ const delay: typeof lodash.delay;
44
+ const difference: typeof lodash.difference;
45
+ const differenceBy: typeof lodash.differenceBy;
46
+ const differenceWith: typeof lodash.differenceWith;
47
+ const divide: typeof lodash.divide;
48
+ const drop: typeof lodash.drop;
49
+ const dropRight: typeof lodash.dropRight;
50
+ const dropRightWhile: typeof lodash.dropRightWhile;
51
+ const dropWhile: typeof lodash.dropWhile;
52
+ const each: typeof lodash.each;
53
+ const eachRight: typeof lodash.eachRight;
54
+ const endsWith: typeof lodash.endsWith;
55
+ const entries: typeof lodash.entries;
56
+ const entriesIn: typeof lodash.entriesIn;
57
+ const eq: typeof lodash.eq;
58
+ const escape: typeof lodash.escape;
59
+ const escapeRegExp: typeof lodash.escapeRegExp;
60
+ const every: typeof lodash.every;
61
+ const extend: typeof lodash.extend;
62
+ const extendWith: typeof lodash.extendWith;
63
+ const fill: typeof lodash.fill;
64
+ const filter: typeof lodash.filter;
65
+ const find: typeof lodash.find;
66
+ const findIndex: typeof lodash.findIndex;
67
+ const findKey: typeof lodash.findKey;
68
+ const findLast: typeof lodash.findLast;
69
+ const findLastIndex: typeof lodash.findLastIndex;
70
+ const findLastKey: typeof lodash.findLastKey;
71
+ const first: typeof lodash.first;
72
+ const flatMap: typeof lodash.flatMap;
73
+ const flatMapDeep: typeof lodash.flatMapDeep;
74
+ const flatMapDepth: typeof lodash.flatMapDepth;
75
+ const flatten: typeof lodash.flatten;
76
+ const flattenDeep: typeof lodash.flattenDeep;
77
+ const flattenDepth: typeof lodash.flattenDepth;
78
+ const flip: typeof lodash.flip;
79
+ const floor: typeof lodash.floor;
80
+ const flow: typeof lodash.flow;
81
+ const flowRight: typeof lodash.flowRight;
82
+ const forEach: typeof lodash.forEach;
83
+ const forEachRight: typeof lodash.forEachRight;
84
+ const forIn: typeof lodash.forIn;
85
+ const forInRight: typeof lodash.forInRight;
86
+ const forOwn: typeof lodash.forOwn;
87
+ const forOwnRight: typeof lodash.forOwnRight;
88
+ const fromPairs: typeof lodash.fromPairs;
89
+ const functions: typeof lodash.functions;
90
+ const functionsIn: typeof lodash.functionsIn;
91
+ const get: typeof lodash.get;
92
+ const groupBy: typeof lodash.groupBy;
93
+ const gt: typeof lodash.gt;
94
+ const gte: typeof lodash.gte;
95
+ const has: typeof lodash.has;
96
+ const hasIn: typeof lodash.hasIn;
97
+ const head: typeof lodash.head;
98
+ const identity: typeof lodash.identity;
99
+ const inRange: typeof lodash.inRange;
100
+ const includes: typeof lodash.includes;
101
+ const indexOf: typeof lodash.indexOf;
102
+ const initial: typeof lodash.initial;
103
+ const intersection: typeof lodash.intersection;
104
+ const intersectionBy: typeof lodash.intersectionBy;
105
+ const intersectionWith: typeof lodash.intersectionWith;
106
+ const invert: typeof lodash.invert;
107
+ const invertBy: typeof lodash.invertBy;
108
+ const invoke: typeof lodash.invoke;
109
+ const invokeMap: typeof lodash.invokeMap;
110
+ const isArguments: typeof lodash.isArguments;
111
+ const isArray: typeof lodash.isArray;
112
+ const isArrayBuffer: typeof lodash.isArrayBuffer;
113
+ const isArrayLike: typeof lodash.isArrayLike;
114
+ const isArrayLikeObject: typeof lodash.isArrayLikeObject;
115
+ const isBoolean: typeof lodash.isBoolean;
116
+ const isBuffer: typeof lodash.isBuffer;
117
+ const isDate: typeof lodash.isDate;
118
+ const isElement: typeof lodash.isElement;
119
+ const isEmpty: typeof lodash.isEmpty;
120
+ const isEqual: typeof lodash.isEqual;
121
+ const isEqualWith: typeof lodash.isEqualWith;
122
+ const isError: typeof lodash.isError;
123
+ const isFinite: typeof lodash.isFinite;
124
+ const isFunction: typeof lodash.isFunction;
125
+ const isInteger: typeof lodash.isInteger;
126
+ const isLength: typeof lodash.isLength;
127
+ const isMap: typeof lodash.isMap;
128
+ const isMatch: typeof lodash.isMatch;
129
+ const isMatchWith: typeof lodash.isMatchWith;
130
+ const isNaN: typeof lodash.isNaN;
131
+ const isNative: typeof lodash.isNative;
132
+ const isNil: typeof lodash.isNil;
133
+ const isNull: typeof lodash.isNull;
134
+ const isNumber: typeof lodash.isNumber;
135
+ const isObject: typeof lodash.isObject;
136
+ const isObjectLike: typeof lodash.isObjectLike;
137
+ const isLeafObject: (value: unknown) => boolean;
138
+ const isPlainObject: typeof lodash.isPlainObject;
139
+ const isRegExp: typeof lodash.isRegExp;
140
+ const isSafeInteger: typeof lodash.isSafeInteger;
141
+ const isSet: typeof lodash.isSet;
142
+ const isString: typeof lodash.isString;
143
+ const isSymbol: typeof lodash.isSymbol;
144
+ const isTypedArray: typeof lodash.isTypedArray;
145
+ const isUndefined: typeof lodash.isUndefined;
146
+ const isWeakMap: typeof lodash.isWeakMap;
147
+ const isWeakSet: typeof lodash.isWeakSet;
148
+ const iteratee: typeof lodash.iteratee;
149
+ const join: typeof lodash.join;
150
+ const kebabCase: typeof lodash.kebabCase;
151
+ const keyBy: typeof lodash.keyBy;
152
+ const keys: typeof lodash.keys;
153
+ const keysIn: typeof lodash.keysIn;
154
+ const last: typeof lodash.last;
155
+ const lastIndexOf: typeof lodash.lastIndexOf;
156
+ const lowerCase: typeof lodash.lowerCase;
157
+ const lowerFirst: typeof lodash.lowerFirst;
158
+ const lt: typeof lodash.lt;
159
+ const lte: typeof lodash.lte;
160
+ const map: typeof lodash.map;
161
+ const mapKeys: typeof lodash.mapKeys;
162
+ const mapValues: typeof lodash.mapValues;
163
+ const matches: typeof lodash.matches;
164
+ const matchesProperty: typeof lodash.matchesProperty;
165
+ const max: typeof lodash.max;
166
+ const maxBy: typeof lodash.maxBy;
167
+ const mean: typeof lodash.mean;
168
+ const meanBy: typeof lodash.meanBy;
169
+ const memoize: typeof lodash.memoize;
170
+ const merge: typeof lodash.merge;
171
+ const mergeWith: typeof lodash.mergeWith;
172
+ const method: typeof lodash.method;
173
+ const methodOf: typeof lodash.methodOf;
174
+ const min: typeof lodash.min;
175
+ const minBy: typeof lodash.minBy;
176
+ const mixin: typeof lodash.mixin;
177
+ const multiply: typeof lodash.multiply;
178
+ const negate: typeof lodash.negate;
179
+ const noop: typeof lodash.noop;
180
+ const now: typeof lodash.now;
181
+ const nth: typeof lodash.nth;
182
+ const nthArg: typeof lodash.nthArg;
183
+ const omit: typeof lodash.omit;
184
+ const omitBy: typeof lodash.omitBy;
185
+ const once: typeof lodash.once;
186
+ const orderBy: typeof lodash.orderBy;
187
+ const over: typeof lodash.over;
188
+ const overArgs: typeof lodash.overArgs;
189
+ const overEvery: typeof lodash.overEvery;
190
+ const overSome: typeof lodash.overSome;
191
+ const pad: typeof lodash.pad;
192
+ const padEnd: typeof lodash.padEnd;
193
+ const padStart: typeof lodash.padStart;
194
+ const parseInt: typeof lodash.parseInt;
195
+ const partial: typeof lodash.partial;
196
+ const partialRight: typeof lodash.partialRight;
197
+ const partition: typeof lodash.partition;
198
+ const pick: typeof lodash.pick;
199
+ const pickBy: typeof lodash.pickBy;
200
+ const property: typeof lodash.property;
201
+ const propertyOf: typeof lodash.propertyOf;
202
+ const pull: typeof lodash.pull;
203
+ const pullAll: typeof lodash.pullAll;
204
+ const pullAllBy: typeof lodash.pullAllBy;
205
+ const pullAllWith: typeof lodash.pullAllWith;
206
+ const pullAt: typeof lodash.pullAt;
207
+ const random: typeof lodash.random;
208
+ const range: typeof lodash.range;
209
+ const rangeRight: typeof lodash.rangeRight;
210
+ const rearg: typeof lodash.rearg;
211
+ const reduce: typeof lodash.reduce;
212
+ const reduceRight: typeof lodash.reduceRight;
213
+ const reject: typeof lodash.reject;
214
+ const remove: typeof lodash.remove;
215
+ const repeat: typeof lodash.repeat;
216
+ const replace: typeof lodash.replace;
217
+ const rest: typeof lodash.rest;
218
+ const result: typeof lodash.result;
219
+ const reverse: typeof lodash.reverse;
220
+ const round: typeof lodash.round;
221
+ const sample: typeof lodash.sample;
222
+ const sampleSize: typeof lodash.sampleSize;
223
+ const set: typeof lodash.set;
224
+ const setWith: typeof lodash.setWith;
225
+ const shuffle: typeof lodash.shuffle;
226
+ const size: typeof lodash.size;
227
+ const slice: typeof lodash.slice;
228
+ const snakeCase: typeof lodash.snakeCase;
229
+ const some: typeof lodash.some;
230
+ const sortBy: typeof lodash.sortBy;
231
+ const sortedIndex: typeof lodash.sortedIndex;
232
+ const sortedIndexBy: typeof lodash.sortedIndexBy;
233
+ const sortedIndexOf: typeof lodash.sortedIndexOf;
234
+ const sortedLastIndex: typeof lodash.sortedLastIndex;
235
+ const sortedLastIndexBy: typeof lodash.sortedLastIndexBy;
236
+ const sortedLastIndexOf: typeof lodash.sortedLastIndexOf;
237
+ const sortedUniq: typeof lodash.sortedUniq;
238
+ const sortedUniqBy: typeof lodash.sortedUniqBy;
239
+ const split: typeof lodash.split;
240
+ const spread: typeof lodash.spread;
241
+ const startCase: typeof lodash.startCase;
242
+ const startsWith: typeof lodash.startsWith;
243
+ const stubArray: typeof lodash.stubArray;
244
+ const stubFalse: typeof lodash.stubFalse;
245
+ const stubObject: typeof lodash.stubObject;
246
+ const stubString: typeof lodash.stubString;
247
+ const stubTrue: typeof lodash.stubTrue;
248
+ const subtract: typeof lodash.subtract;
249
+ const sum: typeof lodash.sum;
250
+ const sumBy: typeof lodash.sumBy;
251
+ const tail: typeof lodash.tail;
252
+ const take: typeof lodash.take;
253
+ const takeRight: typeof lodash.takeRight;
254
+ const takeRightWhile: typeof lodash.takeRightWhile;
255
+ const takeWhile: typeof lodash.takeWhile;
256
+ const tap: typeof lodash.tap;
257
+ const template: typeof lodash.template;
258
+ const templateSettings: typeof lodash.templateSettings;
259
+ const throttle: typeof lodash.throttle;
260
+ const thru: typeof lodash.thru;
261
+ const times: typeof lodash.times;
262
+ const toArray: typeof lodash.toArray;
263
+ const toFinite: typeof lodash.toFinite;
264
+ const toInteger: typeof lodash.toInteger;
265
+ const toLength: typeof lodash.toLength;
266
+ const toLower: typeof lodash.toLower;
267
+ const toNumber: typeof lodash.toNumber;
268
+ const toPairs: typeof lodash.toPairs;
269
+ const toPairsIn: typeof lodash.toPairsIn;
270
+ const toPath: typeof lodash.toPath;
271
+ const toPlainObject: typeof lodash.toPlainObject;
272
+ const toSafeInteger: typeof lodash.toSafeInteger;
273
+ const toString: typeof lodash.toString;
274
+ const toUpper: typeof lodash.toUpper;
275
+ const transform: typeof lodash.transform;
276
+ const trim: typeof lodash.trim;
277
+ const trimEnd: typeof lodash.trimEnd;
278
+ const trimStart: typeof lodash.trimStart;
279
+ const truncate: typeof lodash.truncate;
280
+ const unary: typeof lodash.unary;
281
+ const unescape: typeof lodash.unescape;
282
+ const union: typeof lodash.union;
283
+ const unionBy: typeof lodash.unionBy;
284
+ const unionWith: typeof lodash.unionWith;
285
+ const uniq: typeof lodash.uniq;
286
+ const uniqBy: typeof lodash.uniqBy;
287
+ const uniqWith: typeof lodash.uniqWith;
288
+ const uniqueId: typeof lodash.uniqueId;
289
+ const unset: typeof lodash.unset;
290
+ const unzip: typeof lodash.unzip;
291
+ const unzipWith: typeof lodash.unzipWith;
292
+ const update: typeof lodash.update;
293
+ const updateWith: typeof lodash.updateWith;
294
+ const upperCase: typeof lodash.upperCase;
295
+ const upperFirst: typeof lodash.upperFirst;
296
+ const values: typeof lodash.values;
297
+ const valuesIn: typeof lodash.valuesIn;
298
+ const without: typeof lodash.without;
299
+ const words: typeof lodash.words;
300
+ const wrap: typeof lodash.wrap;
301
+ const xor: typeof lodash.xor;
302
+ const xorBy: typeof lodash.xorBy;
303
+ const xorWith: typeof lodash.xorWith;
304
+ const zip: typeof lodash.zip;
305
+ const zipObject: typeof lodash.zipObject;
306
+ const zipObjectDeep: typeof lodash.zipObjectDeep;
307
+ const zipWith: typeof lodash.zipWith;
308
+ }
@@ -0,0 +1,11 @@
1
+ import { Adapter, SyncAdapter } from '../core/Low';
2
+ export declare class Memory<T> implements Adapter<T> {
3
+ __data: T | null;
4
+ read(): Promise<T | null>;
5
+ write(obj: T): Promise<void>;
6
+ }
7
+ export declare class MemorySync<T> implements SyncAdapter<T> {
8
+ __data: T | null;
9
+ read(): T | null;
10
+ write(obj: T): void;
11
+ }
@@ -0,0 +1,4 @@
1
+ import { WebStorage } from './WebStorage';
2
+ export declare class LocalStorage<T> extends WebStorage<T> {
3
+ constructor(key: string);
4
+ }
@@ -0,0 +1,4 @@
1
+ import { WebStorage } from './WebStorage';
2
+ export declare class SessionStorage<T> extends WebStorage<T> {
3
+ constructor(key: string);
4
+ }
@@ -0,0 +1,8 @@
1
+ import { SyncAdapter } from '../../core/Low';
2
+ export declare class WebStorage<T> implements SyncAdapter<T> {
3
+ __key: string;
4
+ __storage: Storage;
5
+ constructor(key: string, storage: Storage);
6
+ read(): T | null;
7
+ write(obj: T): void;
8
+ }
@@ -0,0 +1,25 @@
1
+ import { PathLike } from 'fs';
2
+ import { Adapter, SyncAdapter } from '../../core/Low';
3
+ import { TextFile, TextFileSync } from './TextFile';
4
+ export declare class DataFile<T> implements Adapter<T> {
5
+ __adapter: TextFile;
6
+ __parse: (str: string) => T;
7
+ __stringify: (data: T) => string;
8
+ constructor(filename: PathLike, { parse, stringify, }: {
9
+ parse: (str: string) => T;
10
+ stringify: (data: T) => string;
11
+ });
12
+ read(): Promise<T | null>;
13
+ write(obj: T): Promise<void>;
14
+ }
15
+ export declare class DataFileSync<T> implements SyncAdapter<T> {
16
+ __adapter: TextFileSync;
17
+ __parse: (str: string) => T;
18
+ __stringify: (data: T) => string;
19
+ constructor(filename: PathLike, { parse, stringify, }: {
20
+ parse: (str: string) => T;
21
+ stringify: (data: T) => string;
22
+ });
23
+ read(): T | null;
24
+ write(obj: T): void;
25
+ }
@@ -0,0 +1,8 @@
1
+ import { PathLike } from 'fs';
2
+ import { DataFile, DataFileSync } from './DataFile';
3
+ export declare class JSONFile<T> extends DataFile<T> {
4
+ constructor(filename: PathLike);
5
+ }
6
+ export declare class JSONFileSync<T> extends DataFileSync<T> {
7
+ constructor(filename: PathLike);
8
+ }
@@ -0,0 +1,17 @@
1
+ import type { PathLike } from 'fs';
2
+ import { Adapter, SyncAdapter } from '../../core/Low';
3
+ import { Writer } from './steno';
4
+ export declare class TextFile implements Adapter<string> {
5
+ __filename: PathLike;
6
+ __writer: Writer;
7
+ constructor(filename: PathLike);
8
+ read(): Promise<string | null>;
9
+ write(str: string): Promise<void>;
10
+ }
11
+ export declare class TextFileSync implements SyncAdapter<string> {
12
+ __tempFilename: PathLike;
13
+ __filename: PathLike;
14
+ constructor(filename: PathLike);
15
+ read(): string | null;
16
+ write(str: string): void;
17
+ }
@@ -0,0 +1,13 @@
1
+ export declare class Writer {
2
+ __filename: any;
3
+ __tempFilename: any;
4
+ __locked: boolean;
5
+ __prev: any;
6
+ __next: any;
7
+ __nextPromise: any;
8
+ __nextData: any;
9
+ __add(data: any): Promise<unknown>;
10
+ __write(data: any): Promise<void>;
11
+ constructor(filename: any);
12
+ write(data: any): Promise<unknown>;
13
+ }
@@ -0,0 +1,3 @@
1
+ export * from './adapters/client/LocalStorage';
2
+ export * from './adapters/client/SessionStorage';
3
+ export * from './presets/browser';
@@ -0,0 +1,24 @@
1
+ export interface Adapter<T> {
2
+ read: () => Promise<T | null>;
3
+ write: (data: T) => Promise<void>;
4
+ }
5
+ export interface SyncAdapter<T> {
6
+ read: () => T | null;
7
+ write: (data: T) => void;
8
+ }
9
+ export declare class Low<T = unknown> {
10
+ adapter: Adapter<T>;
11
+ data: T;
12
+ constructor(adapter: Adapter<T>, defaultData: T);
13
+ read(): Promise<void>;
14
+ write(): Promise<void>;
15
+ update(fn: (data: T) => unknown): Promise<void>;
16
+ }
17
+ export declare class LowSync<T = unknown> {
18
+ adapter: SyncAdapter<T>;
19
+ data: T;
20
+ constructor(adapter: SyncAdapter<T>, defaultData: T);
21
+ read(): void;
22
+ write(): void;
23
+ update(fn: (data: T) => unknown): void;
24
+ }
File without changes
@@ -0,0 +1,3 @@
1
+ export * from './adapters/Memory';
2
+ export * from './core/Low';
3
+ export * from './presets/node';
@@ -0,0 +1,4 @@
1
+ export * from './adapters/node/DataFile';
2
+ export * from './adapters/node/JSONFile';
3
+ export * from './adapters/node/TextFile';
4
+ export * from './presets/node';
@@ -0,0 +1,3 @@
1
+ import { LowSync } from '../index';
2
+ export declare function LocalStoragePreset<Data>(key: string, defaultData: Data): LowSync<Data>;
3
+ export declare function SessionStoragePreset<Data>(key: string, defaultData: Data): LowSync<Data>;
@@ -0,0 +1,4 @@
1
+ import type { PathLike } from 'fs';
2
+ import { Low, LowSync } from '../core/Low';
3
+ export declare function JSONFilePreset<Data>(filename: PathLike, defaultData: Data, useInMemory?: boolean): Promise<Low<Data>>;
4
+ export declare function JSONFileSyncPreset<Data>(filename: PathLike, defaultData: Data, useInMemory?: boolean): LowSync<Data>;
@@ -0,0 +1,2 @@
1
+ import type { Chalk } from 'chalk';
2
+ export declare const chalk: Chalk;
@@ -0,0 +1,25 @@
1
+ export declare const path: {
2
+ resolve: (pathToResovle: any) => any;
3
+ normalize: (pathArg: any) => any;
4
+ isAbsolute: (pathArg: any) => boolean;
5
+ join: () => any;
6
+ relative: (from: any, to: any) => any;
7
+ _makeLong: (path: any) => any;
8
+ dirname: (path: any) => any;
9
+ basename: (pathArg: any, ext: any) => any;
10
+ extname: (pathArg: any) => any;
11
+ format: (pathObject: any) => any;
12
+ parse: (pathArg: any) => {
13
+ root: string;
14
+ dir: string;
15
+ base: string;
16
+ ext: string;
17
+ name: string;
18
+ };
19
+ sep: string;
20
+ delimiter: string;
21
+ win32: {
22
+ normalize: (p: any) => any;
23
+ };
24
+ posix: any;
25
+ };
@@ -0,0 +1,4 @@
1
+ export * from './core-imports';
2
+ export * from './core-models';
3
+ export * from './core-config';
4
+ export { Helpers } from './helpers';
@@ -0,0 +1,44 @@
1
+ /**
2
+ * TODO slowly refactor this.. only actually globally needed are:
3
+ * pm2, yarn, npm-run, ts-node ???
4
+ */
5
+ export declare const requiredForDev: {
6
+ npm: ({
7
+ name: string;
8
+ version: string;
9
+ installName?: undefined;
10
+ } | {
11
+ name: string;
12
+ version?: undefined;
13
+ installName?: undefined;
14
+ } | {
15
+ name: string;
16
+ installName: string;
17
+ version?: undefined;
18
+ })[];
19
+ niceTools: ({
20
+ name: string;
21
+ platform?: undefined;
22
+ installName?: undefined;
23
+ isNotCli?: undefined;
24
+ } | {
25
+ name: string;
26
+ platform: string;
27
+ installName?: undefined;
28
+ isNotCli?: undefined;
29
+ } | {
30
+ name: string;
31
+ installName: string;
32
+ platform?: undefined;
33
+ isNotCli?: undefined;
34
+ } | {
35
+ name: string;
36
+ isNotCli: boolean;
37
+ platform?: undefined;
38
+ installName?: undefined;
39
+ })[];
40
+ programs: {
41
+ name: string;
42
+ website: string;
43
+ }[];
44
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * @param argsv process.argsv
4
+ * @param filename needed if you want ipc communicaiton
5
+ */
6
+ export declare function startCli(argsv: string[], filename: string): Promise<void>;
7
+ export default startCli;
@@ -0,0 +1,23 @@
1
+ import { Observable } from 'rxjs';
2
+ export type JsPrimitive = string | number | boolean | null | undefined | bigint | symbol;
3
+ export declare class TaonStateMachine<T extends JsPrimitive = JsPrimitive> {
4
+ private readonly config;
5
+ private _currentValue;
6
+ private readonly currentStateSubject;
7
+ readonly currentState$: Observable<{
8
+ currentState: T;
9
+ previousState: T;
10
+ }>;
11
+ constructor(config: {
12
+ debugMode?: boolean;
13
+ defaultValue: T;
14
+ allowedStateMap?: Map<T, T[]>;
15
+ modifyStateBeforeSetting?: (nextState: T, currentState: T, debugMode: boolean) => T;
16
+ effect?: (nextState: T, previousState: T, debugMode: boolean) => void | Promise<void>;
17
+ throwOnInvalidTransition?: boolean;
18
+ });
19
+ get debugMode(): boolean;
20
+ get currentValue(): T;
21
+ canSet(nextStateRaw: T): boolean;
22
+ set(nextStateRaw: T): boolean;
23
+ }
@@ -0,0 +1,68 @@
1
+ import { Blob } from 'buffer';
2
+ import { CoreModels } from './core-models';
3
+ export declare enum DbBinaryFormatEnum {
4
+ Blob = "Blob",
5
+ File = "File",
6
+ string = "string",
7
+ Buffer = "Buffer"
8
+ }
9
+ export type DbBinaryFormatForBrowser = Blob | File | string;
10
+ export type DbBinaryFormatForBackend = Buffer;
11
+ /**
12
+ * Binary format that can be stored in database
13
+ *
14
+ * for nodejs => Buffer
15
+ * for sql.js => string (shoulb be blob - but not supported)
16
+ *
17
+ */
18
+ export type DbBinaryFormat = DbBinaryFormatForBrowser | DbBinaryFormatForBackend;
19
+ export declare namespace UtilsBinary {
20
+ /**
21
+ * This is for BROWSER ONLY
22
+ *
23
+ * @param buffer
24
+ * @param contentType
25
+ * @returns
26
+ */
27
+ function arrayBufferToBlob(buffer: ArrayBuffer, contentType: CoreModels.ContentType): Promise<Blob>;
28
+ /**
29
+ * This is for BROWSER ONLY
30
+ * @param blob
31
+ * @returns
32
+ */
33
+ function blobToArrayBuffer(blob: Blob): Promise<ArrayBuffer>;
34
+ /**
35
+ * it is revers to base64toBlob
36
+ * @param blob
37
+ * @returns
38
+ */
39
+ function blobToBase64(blob: Blob): Promise<string>;
40
+ /**
41
+ * it is revers to blobToBase64()
42
+ * @param base64Data
43
+ * @returns
44
+ */
45
+ function base64toBlob(base64Data: string, contentTypeOverride?: CoreModels.ContentType): Promise<Blob>;
46
+ function base64toDbBinaryFormat(text: string): Promise<DbBinaryFormat>;
47
+ function dbBinaryFormatToBase64(binaryFormat: DbBinaryFormat): Promise<string>;
48
+ function textToDbBinaryFormat(text: string): Promise<DbBinaryFormat>;
49
+ function dbBinaryFormatToText(binaryFormat: DbBinaryFormat): Promise<string>;
50
+ function base64toBuffer(base64Data: string, contentTypeOverride?: CoreModels.ContentType): Promise<Buffer>;
51
+ function bufferToBase64(bufferData: Buffer): Promise<string>;
52
+ function fileToBlob(file: File): Promise<Blob>;
53
+ function blobToFile(blob: Blob, nameForFile?: string): Promise<File>;
54
+ function blobToBuffer(blob: Blob): Promise<Buffer>;
55
+ function bufferToBlob(buffer: Buffer): Promise<Blob>;
56
+ function textToBuffer(text: string, type?: CoreModels.ContentType): Promise<Buffer>;
57
+ function bufferToText(buffer: Buffer): Promise<string>;
58
+ function textToBlob(text: string, type?: CoreModels.ContentType): Promise<Blob>;
59
+ function blobToText(blob: Blob): Promise<string>;
60
+ function textToFile(text: string, fileRelativePathOrName: string): Promise<File>;
61
+ function fileToText(file: File): Promise<string>;
62
+ function jsonToBlob(jsonObj: object): Promise<Blob>;
63
+ /**
64
+ * TODO NOT TESTED
65
+ */
66
+ function blobToJson(blob: Blob): Promise<string>;
67
+ function getBlobFrom(url: string): Promise<Blob>;
68
+ }