@design-edito/tools 0.3.17 → 0.4.1
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/agnostic/colors/index.d.ts +1 -1
- package/agnostic/colors/index.js +1 -1
- package/agnostic/css/bem/index.js +3 -3
- package/agnostic/css/index.d.ts +1 -1
- package/agnostic/css/index.js +1 -1
- package/agnostic/css/scale/index.js +3 -3
- package/agnostic/html/hyper-json/cast/index.js +8 -9
- package/agnostic/html/hyper-json/index.d.ts +1 -0
- package/agnostic/html/hyper-json/index.js +13 -12
- package/agnostic/html/hyper-json/method/index.d.ts +2 -2
- package/agnostic/html/hyper-json/serialize/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/index.d.ts +8 -1
- package/agnostic/html/hyper-json/smart-tags/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +2 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +2 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +2 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +8 -9
- package/agnostic/html/hyper-json/transformer/index.d.ts +7 -7
- package/agnostic/html/hyper-json/transformer/index.js +1 -1
- package/agnostic/html/hyper-json/tree/index.d.ts +3 -5
- package/agnostic/html/hyper-json/tree/index.js +8 -9
- package/agnostic/html/hyper-json/types/index.d.ts +4 -10
- package/agnostic/html/hyper-json/utils/index.js +8 -9
- package/agnostic/html/index.d.ts +2 -2
- package/agnostic/html/index.js +2 -2
- package/agnostic/index.d.ts +4 -4
- package/agnostic/index.js +4 -4
- package/agnostic/misc/index.d.ts +5 -5
- package/agnostic/misc/index.js +5 -5
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/numbers/index.d.ts +1 -1
- package/agnostic/numbers/index.js +1 -1
- package/agnostic/objects/index.d.ts +3 -3
- package/agnostic/objects/index.js +3 -3
- package/agnostic/optim/index.d.ts +1 -1
- package/agnostic/optim/index.js +1 -1
- package/agnostic/sanitization/index.d.ts +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/strings/index.d.ts +3 -3
- package/agnostic/strings/index.js +3 -3
- package/agnostic/strings/replace-all/index.js +14 -3
- package/chunks/{chunk-FJH35B3Q.js → chunk-B4HGXMP3.js} +2 -2
- package/chunks/{chunk-QQPOSZFR.js → chunk-E33STMH3.js} +37 -64
- package/chunks/{chunk-QDHET2TE.js → chunk-HYGUIF2O.js} +5 -2
- package/chunks/{chunk-4STX5SQX.js → chunk-LEBGVBYD.js} +9 -2
- package/chunks/{chunk-FCABYQRX.js → chunk-MSU7JU63.js} +13 -1
- package/chunks/{chunk-H4KLHV6B.js → chunk-O32IRXDX.js} +1 -1
- package/chunks/{chunk-DU6U226H.js → chunk-RJRNYRPM.js} +2 -2
- package/components/index.d.ts +2 -2
- package/components/index.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/node/@aws-s3/storage/file/index.d.ts +2 -2
- package/node/@aws-s3/storage/file/index.js +2 -2
- package/node/@google-cloud/storage/directory/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.js +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +3 -3
- package/node/@google-cloud/storage/file/index.js +3 -3
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
- package/node/cloud-storage/index.d.ts +1 -1
- package/node/cloud-storage/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +2 -2
- package/node/cloud-storage/operations/index.js +2 -2
- package/node/ftps/file/index.d.ts +2 -2
- package/node/ftps/file/index.js +2 -2
- package/node/images/transform/index.js +28 -28
- package/node/images/transform/operations/index.d.ts +5 -5
- package/node/images/transform/operations/index.js +5 -5
- package/node/index.d.ts +2 -2
- package/node/index.js +2 -2
- package/node/process/index.d.ts +1 -1
- package/node/process/index.js +1 -1
- package/node/sftp/directory/index.d.ts +1 -1
- package/node/sftp/directory/index.js +1 -1
- package/package.json +1 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +0 -25
- package/chunks/chunk-EPUHVR7J.js +0 -17
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type * as Outcome from '../../../misc/outcome/index.js';
|
|
2
|
-
import { type Logger } from '../../../misc/logs/logger/index.js';
|
|
3
2
|
import { type Tree as TreeNamespace } from '../tree/index.js';
|
|
4
3
|
import { type Transformer } from '../transformer/index.js';
|
|
5
4
|
import { type Method } from '../method/index.js';
|
|
@@ -24,11 +23,11 @@ export declare namespace Types {
|
|
|
24
23
|
name: string;
|
|
25
24
|
sourceTree: TreeNamespace.Tree;
|
|
26
25
|
};
|
|
27
|
-
type Function<Main extends Tree.RestingValue, Args extends Tree.Value[], Out extends Tree.RestingValue> = (mainValue: Main, args: Args, details: FunctionDetailsArg) => Outcome.Either<Out, FunctionFailurePayload>;
|
|
26
|
+
type Function<Main extends Tree.RestingValue | undefined, Args extends Tree.Value[], Out extends Tree.RestingValue> = (mainValue: Main, args: Args, details: FunctionDetailsArg) => Outcome.Either<Out, FunctionFailurePayload>;
|
|
28
27
|
type FailurePayloadCore = {
|
|
29
28
|
transformerName: string;
|
|
30
29
|
path: string;
|
|
31
|
-
mainValue
|
|
30
|
+
mainValue?: Tree.RestingValue;
|
|
32
31
|
argsValue: Tree.RestingArrayValue;
|
|
33
32
|
};
|
|
34
33
|
type MainValueFailurePayload = FailurePayloadCore & FunctionMainValueFailure & {
|
|
@@ -77,11 +76,6 @@ export declare namespace Types {
|
|
|
77
76
|
type ValueTypeName = keyof ValuesTypesNamesIndex;
|
|
78
77
|
type ValueTypeFromNames<N extends ValueTypeName[]> = ValuesTypesNamesIndex[N[number]];
|
|
79
78
|
type Resolver = (path: TreeNamespace.Tree['path']) => TreeNamespace.Tree | undefined;
|
|
80
|
-
type Options = {
|
|
81
|
-
globalObject: RestingRecordValue;
|
|
82
|
-
logger: Logger | null;
|
|
83
|
-
loggerThread: string | undefined;
|
|
84
|
-
};
|
|
85
79
|
type Serialized = {
|
|
86
80
|
type: 'null';
|
|
87
81
|
value: null;
|
|
@@ -118,7 +112,7 @@ export declare namespace Types {
|
|
|
118
112
|
};
|
|
119
113
|
}
|
|
120
114
|
namespace SmartTags {
|
|
121
|
-
type SmartTag<Main extends Types.Tree.RestingValue = Types.Tree.RestingValue, Args extends Types.Tree.RestingArrayValue = Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue = Types.Tree.RestingValue> = {
|
|
115
|
+
type SmartTag<Main extends Types.Tree.RestingValue | undefined = Types.Tree.RestingValue | undefined, Args extends Types.Tree.RestingArrayValue = Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue = Types.Tree.RestingValue> = {
|
|
122
116
|
defaultMode: Types.Tree.Mode;
|
|
123
117
|
isolationInitType: Exclude<Types.Tree.ValueTypeName, 'transformer' | 'method'>;
|
|
124
118
|
generator: (innerValue: Types.Tree.RestingValue, mode: Types.Tree.Mode, sourceTree: TreeNamespace.Tree) => {
|
|
@@ -126,7 +120,7 @@ export declare namespace Types {
|
|
|
126
120
|
method: Method<Main, Args, Output>;
|
|
127
121
|
};
|
|
128
122
|
};
|
|
129
|
-
type Descriptor<Main extends Types.Tree.RestingValue = Types.Tree.RestingValue, Args extends Types.Tree.RestingArrayValue = Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue = Types.Tree.RestingValue> = {
|
|
123
|
+
type Descriptor<Main extends Types.Tree.RestingValue | undefined = Types.Tree.RestingValue | undefined, Args extends Types.Tree.RestingArrayValue = Types.Tree.RestingArrayValue, Output extends Types.Tree.RestingValue = Types.Tree.RestingValue> = {
|
|
130
124
|
name: string;
|
|
131
125
|
defaultMode: Types.Tree.Mode;
|
|
132
126
|
isolationInitType: Exclude<Types.Tree.ValueTypeName, 'transformer' | 'method'>;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Utils
|
|
3
|
-
} from "../../../../chunks/chunk-
|
|
4
|
-
import "../../../../chunks/chunk-
|
|
5
|
-
import "../../../../chunks/chunk-DU6U226H.js";
|
|
6
|
-
import "../../../../chunks/chunk-QDHET2TE.js";
|
|
7
|
-
import "../../../../chunks/chunk-FCABYQRX.js";
|
|
8
|
-
import "../../../../chunks/chunk-H4KLHV6B.js";
|
|
9
|
-
import "../../../../chunks/chunk-4STX5SQX.js";
|
|
10
|
-
import "../../../../chunks/chunk-RW7VAKJW.js";
|
|
3
|
+
} from "../../../../chunks/chunk-E33STMH3.js";
|
|
4
|
+
import "../../../../chunks/chunk-B4HGXMP3.js";
|
|
11
5
|
import "../../../../chunks/chunk-XEQ2PBT2.js";
|
|
6
|
+
import "../../../../chunks/chunk-RJRNYRPM.js";
|
|
7
|
+
import "../../../../chunks/chunk-HYGUIF2O.js";
|
|
8
|
+
import "../../../../chunks/chunk-MSU7JU63.js";
|
|
9
|
+
import "../../../../chunks/chunk-O32IRXDX.js";
|
|
10
|
+
import "../../../../chunks/chunk-LEBGVBYD.js";
|
|
11
|
+
import "../../../../chunks/chunk-RW7VAKJW.js";
|
|
12
12
|
import "../../../../chunks/chunk-XA4HVHJ4.js";
|
|
13
13
|
import "../../../../chunks/chunk-XNF5MLCQ.js";
|
|
14
14
|
import "../../../../chunks/chunk-E6MSDKON.js";
|
|
15
15
|
import "../../../../chunks/chunk-YDIBNEGA.js";
|
|
16
16
|
import "../../../../chunks/chunk-6XL25OZX.js";
|
|
17
|
-
import "../../../../chunks/chunk-EPUHVR7J.js";
|
|
18
17
|
import "../../../../chunks/chunk-LUAYN7VJ.js";
|
|
19
18
|
import "../../../../chunks/chunk-57YKZBJR.js";
|
|
20
19
|
import "../../../../chunks/chunk-HQLRJ7XW.js";
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
2
2
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
3
|
+
export * as hyperJson from './hyper-json/index.js'
|
|
4
|
+
export * as insertNode from './insert-node/index.js'
|
|
3
5
|
export * as placeholders from './placeholders/index.js'
|
|
4
6
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
5
|
-
export * as insertNode from './insert-node/index.js'
|
|
6
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
7
8
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
8
|
-
export * as hyperJson from './hyper-json/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
2
2
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
3
|
+
export * as hyperJson from './hyper-json/index.js'
|
|
4
|
+
export * as insertNode from './insert-node/index.js'
|
|
3
5
|
export * as placeholders from './placeholders/index.js'
|
|
4
6
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
5
|
-
export * as insertNode from './insert-node/index.js'
|
|
6
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
7
8
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
8
|
-
export * as hyperJson from './hyper-json/index.js'
|
package/agnostic/index.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ export * as booleans from './booleans/index.js'
|
|
|
3
3
|
export * as colors from './colors/index.js'
|
|
4
4
|
export * as css from './css/index.js'
|
|
5
5
|
export * as errors from './errors/index.js'
|
|
6
|
-
export * as misc from './misc/index.js'
|
|
7
6
|
export * as html from './html/index.js'
|
|
8
|
-
export * as
|
|
7
|
+
export * as misc from './misc/index.js'
|
|
9
8
|
export * as numbers from './numbers/index.js'
|
|
9
|
+
export * as objects from './objects/index.js'
|
|
10
10
|
export * as optim from './optim/index.js'
|
|
11
11
|
export * as random from './random/index.js'
|
|
12
|
+
export * as regexps from './regexps/index.js'
|
|
12
13
|
export * as sanitization from './sanitization/index.js'
|
|
13
|
-
export * as time from './time/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
|
+
export * as time from './time/index.js'
|
|
15
16
|
export * as typescript from './typescript/index.js'
|
|
16
|
-
export * as regexps from './regexps/index.js'
|
package/agnostic/index.js
CHANGED
|
@@ -3,14 +3,14 @@ export * as booleans from './booleans/index.js'
|
|
|
3
3
|
export * as colors from './colors/index.js'
|
|
4
4
|
export * as css from './css/index.js'
|
|
5
5
|
export * as errors from './errors/index.js'
|
|
6
|
-
export * as misc from './misc/index.js'
|
|
7
6
|
export * as html from './html/index.js'
|
|
8
|
-
export * as
|
|
7
|
+
export * as misc from './misc/index.js'
|
|
9
8
|
export * as numbers from './numbers/index.js'
|
|
9
|
+
export * as objects from './objects/index.js'
|
|
10
10
|
export * as optim from './optim/index.js'
|
|
11
11
|
export * as random from './random/index.js'
|
|
12
|
+
export * as regexps from './regexps/index.js'
|
|
12
13
|
export * as sanitization from './sanitization/index.js'
|
|
13
|
-
export * as time from './time/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
|
+
export * as time from './time/index.js'
|
|
15
16
|
export * as typescript from './typescript/index.js'
|
|
16
|
-
export * as regexps from './regexps/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as connection from './connection/index.js'
|
|
2
1
|
export * as assert from './assert/index.js'
|
|
2
|
+
export * as cast from './cast/index.js'
|
|
3
|
+
export * as connection from './connection/index.js'
|
|
3
4
|
export * as crawler from './crawler/index.js'
|
|
4
|
-
export * as dataSize from './data-size/index.js'
|
|
5
5
|
export * as crossenv from './crossenv/index.js'
|
|
6
|
-
export * as
|
|
6
|
+
export * as dataSize from './data-size/index.js'
|
|
7
7
|
export * as isNullish from './is-nullish/index.js'
|
|
8
|
-
export * as
|
|
8
|
+
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
9
9
|
export * as logs from './logs/index.js'
|
|
10
|
+
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
10
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
|
11
|
-
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
12
12
|
export * as outcome from './outcome/index.js'
|
package/agnostic/misc/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as connection from './connection/index.js'
|
|
2
1
|
export * as assert from './assert/index.js'
|
|
2
|
+
export * as cast from './cast/index.js'
|
|
3
|
+
export * as connection from './connection/index.js'
|
|
3
4
|
export * as crawler from './crawler/index.js'
|
|
4
|
-
export * as dataSize from './data-size/index.js'
|
|
5
5
|
export * as crossenv from './crossenv/index.js'
|
|
6
|
-
export * as
|
|
6
|
+
export * as dataSize from './data-size/index.js'
|
|
7
7
|
export * as isNullish from './is-nullish/index.js'
|
|
8
|
-
export * as
|
|
8
|
+
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
9
9
|
export * as logs from './logs/index.js'
|
|
10
|
+
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
10
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
|
11
|
-
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
12
12
|
export * as outcome from './outcome/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
|
+
export * as approximateRational from './approximate-rational/index.js'
|
|
2
3
|
export * as clamp from './clamp/index.js'
|
|
3
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
4
5
|
export * as interpolate from './interpolate/index.js'
|
|
5
|
-
export * as approximateRational from './approximate-rational/index.js'
|
|
6
6
|
export * as round from './round/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
|
+
export * as approximateRational from './approximate-rational/index.js'
|
|
2
3
|
export * as clamp from './clamp/index.js'
|
|
3
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
4
5
|
export * as interpolate from './interpolate/index.js'
|
|
5
|
-
export * as approximateRational from './approximate-rational/index.js'
|
|
6
6
|
export * as round from './round/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * as flattenGetters from './flatten-getters/index.js'
|
|
2
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
3
2
|
export * as enums from './enums/index.js'
|
|
3
|
+
export * as flattenGetters from './flatten-getters/index.js'
|
|
4
4
|
export * as isObject from './is-object/index.js'
|
|
5
5
|
export * as isRecord from './is-record/index.js'
|
|
6
|
-
export * as
|
|
6
|
+
export * as recordMap from './record-map/index.js'
|
|
7
7
|
export * as recordFormat from './record-format/index.js'
|
|
8
|
+
export * as sortKeys from './sort-keys/index.js'
|
|
8
9
|
export * as validation from './validation/index.js'
|
|
9
|
-
export * as recordMap from './record-map/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * as flattenGetters from './flatten-getters/index.js'
|
|
2
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
3
2
|
export * as enums from './enums/index.js'
|
|
3
|
+
export * as flattenGetters from './flatten-getters/index.js'
|
|
4
4
|
export * as isObject from './is-object/index.js'
|
|
5
5
|
export * as isRecord from './is-record/index.js'
|
|
6
|
-
export * as
|
|
6
|
+
export * as recordMap from './record-map/index.js'
|
|
7
7
|
export * as recordFormat from './record-format/index.js'
|
|
8
|
+
export * as sortKeys from './sort-keys/index.js'
|
|
8
9
|
export * as validation from './validation/index.js'
|
|
9
|
-
export * as recordMap from './record-map/index.js'
|
package/agnostic/optim/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as matches from './matches/index.js'
|
|
2
1
|
export * as charCodes from './char-codes/index.js'
|
|
2
|
+
export * as normalizeIndent from './normalize-indent/index.js'
|
|
3
|
+
export * as matches from './matches/index.js'
|
|
3
4
|
export * as parseTable from './parse-table/index.js'
|
|
4
5
|
export * as replaceAll from './replace-all/index.js'
|
|
5
|
-
export * as trim from './trim/index.js'
|
|
6
6
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
7
|
-
export * as
|
|
7
|
+
export * as trim from './trim/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as matches from './matches/index.js'
|
|
2
1
|
export * as charCodes from './char-codes/index.js'
|
|
2
|
+
export * as normalizeIndent from './normalize-indent/index.js'
|
|
3
|
+
export * as matches from './matches/index.js'
|
|
3
4
|
export * as parseTable from './parse-table/index.js'
|
|
4
5
|
export * as replaceAll from './replace-all/index.js'
|
|
5
|
-
export * as trim from './trim/index.js'
|
|
6
6
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
7
|
-
export * as
|
|
7
|
+
export * as trim from './trim/index.js'
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
replaceAll
|
|
3
|
-
} from "../../../chunks/chunk-EPUHVR7J.js";
|
|
4
1
|
import "../../../chunks/chunk-WSFCRVEQ.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/strings/replace-all/index.ts
|
|
4
|
+
function replaceAll(input, pattern, replacer) {
|
|
5
|
+
console.warn("[DEPRECATED] Use String.replaceAll instead");
|
|
6
|
+
const found = Array.from(input.match(pattern) ?? []);
|
|
7
|
+
const foundReplaced = typeof replacer === "string" ? found.map(() => replacer) : found.map((e) => replacer(e));
|
|
8
|
+
const splitted = input.split(pattern);
|
|
9
|
+
const replaced = splitted.map((chunk, chunkPos) => {
|
|
10
|
+
const isLast = chunkPos === splitted.length - 1;
|
|
11
|
+
if (isLast) return [chunk];
|
|
12
|
+
return [chunk, foundReplaced[chunkPos] ?? ""];
|
|
13
|
+
}).flat().join("");
|
|
14
|
+
return replaced;
|
|
15
|
+
}
|
|
5
16
|
export {
|
|
6
17
|
replaceAll
|
|
7
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SmartTags
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MSU7JU63.js";
|
|
4
4
|
import {
|
|
5
5
|
makeSuccess
|
|
6
6
|
} from "./chunk-LUAYN7VJ.js";
|
|
@@ -10,7 +10,7 @@ var nullFunc = SmartTags.makeSmartTag({
|
|
|
10
10
|
name: "null",
|
|
11
11
|
defaultMode: "isolation",
|
|
12
12
|
isolationInitType: "null",
|
|
13
|
-
mainValueCheck: (i) => (
|
|
13
|
+
mainValueCheck: (i) => makeSuccess(i),
|
|
14
14
|
argsValueCheck: (a) => makeSuccess(a),
|
|
15
15
|
func: () => makeSuccess(null)
|
|
16
16
|
});
|