@kitman-sh/go-to-market 0.13.19 → 0.14.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/dist/bundle.js +70 -1
- package/dist/declarations.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -1497,6 +1497,7 @@ var Number2 = /* @__PURE__ */ make2((self, that) => {
|
|
|
1497
1497
|
return self < that ? -1 : 1;
|
|
1498
1498
|
});
|
|
1499
1499
|
var mapInput = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1), f(b2))));
|
|
1500
|
+
var isLessThan = (O) => dual(2, (self, that) => O(self, that) === -1);
|
|
1500
1501
|
var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
1501
1502
|
var isLessThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== 1);
|
|
1502
1503
|
var isGreaterThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== -1);
|
|
@@ -11245,6 +11246,33 @@ function makeIsLessThanOrEqualTo(options) {
|
|
|
11245
11246
|
});
|
|
11246
11247
|
};
|
|
11247
11248
|
}
|
|
11249
|
+
function makeIsBetween(deriveOptions) {
|
|
11250
|
+
const greaterThanOrEqualTo = isGreaterThanOrEqualTo(deriveOptions.order);
|
|
11251
|
+
const greaterThan = isGreaterThan(deriveOptions.order);
|
|
11252
|
+
const lessThanOrEqualTo = isLessThanOrEqualTo(deriveOptions.order);
|
|
11253
|
+
const lessThan = isLessThan(deriveOptions.order);
|
|
11254
|
+
const formatter = deriveOptions.formatter ?? format;
|
|
11255
|
+
return (options, annotations) => {
|
|
11256
|
+
const gte = options.exclusiveMinimum ? greaterThan : greaterThanOrEqualTo;
|
|
11257
|
+
const lte = options.exclusiveMaximum ? lessThan : lessThanOrEqualTo;
|
|
11258
|
+
return makeFilter2((input) => gte(input, options.minimum) && lte(input, options.maximum), {
|
|
11259
|
+
expected: `a value between ${formatter(options.minimum)}${options.exclusiveMinimum ? " (excluded)" : ""} and ${formatter(options.maximum)}${options.exclusiveMaximum ? " (excluded)" : ""}`,
|
|
11260
|
+
arbitraryConstraint: {
|
|
11261
|
+
order: deriveOptions.order,
|
|
11262
|
+
minimum: options.minimum,
|
|
11263
|
+
maximum: options.maximum,
|
|
11264
|
+
...options.exclusiveMinimum && {
|
|
11265
|
+
exclusiveMinimum: true
|
|
11266
|
+
},
|
|
11267
|
+
...options.exclusiveMaximum && {
|
|
11268
|
+
exclusiveMaximum: true
|
|
11269
|
+
}
|
|
11270
|
+
},
|
|
11271
|
+
...deriveOptions.annotate?.(options),
|
|
11272
|
+
...annotations
|
|
11273
|
+
});
|
|
11274
|
+
};
|
|
11275
|
+
}
|
|
11248
11276
|
function encodeNumberPayload(number) {
|
|
11249
11277
|
if (!globalThis.Number.isFinite(number)) {
|
|
11250
11278
|
throw new globalThis.RangeError(`Expected a finite number, got ${format(number)}`);
|
|
@@ -11285,6 +11313,36 @@ var isLessThanOrEqualTo3 = /* @__PURE__ */ makeIsLessThanOrEqualTo({
|
|
|
11285
11313
|
})
|
|
11286
11314
|
})
|
|
11287
11315
|
});
|
|
11316
|
+
var isBetween2 = /* @__PURE__ */ makeIsBetween({
|
|
11317
|
+
order: Number2,
|
|
11318
|
+
annotate: (options) => {
|
|
11319
|
+
const exclusiveMinimum = options.exclusiveMinimum ? true : undefined;
|
|
11320
|
+
const exclusiveMaximum = options.exclusiveMaximum ? true : undefined;
|
|
11321
|
+
const payload = {
|
|
11322
|
+
minimum: encodeNumberPayload(options.minimum),
|
|
11323
|
+
maximum: encodeNumberPayload(options.maximum),
|
|
11324
|
+
...exclusiveMinimum && {
|
|
11325
|
+
exclusiveMinimum
|
|
11326
|
+
},
|
|
11327
|
+
...exclusiveMaximum && {
|
|
11328
|
+
exclusiveMaximum
|
|
11329
|
+
}
|
|
11330
|
+
};
|
|
11331
|
+
return {
|
|
11332
|
+
representation: {
|
|
11333
|
+
id: "effect/schema/isBetween",
|
|
11334
|
+
payload
|
|
11335
|
+
},
|
|
11336
|
+
toJsonSchema: () => ({
|
|
11337
|
+
[exclusiveMinimum ? "exclusiveMinimum" : "minimum"]: options.minimum,
|
|
11338
|
+
[exclusiveMaximum ? "exclusiveMaximum" : "maximum"]: options.maximum
|
|
11339
|
+
}),
|
|
11340
|
+
toCode: () => ({
|
|
11341
|
+
runtime: `Schema.isBetween({ minimum: ${format(options.minimum)}, maximum: ${format(options.maximum)}, exclusiveMinimum: ${format(exclusiveMinimum)}, exclusiveMaximum: ${format(exclusiveMaximum)} })`
|
|
11342
|
+
})
|
|
11343
|
+
};
|
|
11344
|
+
}
|
|
11345
|
+
});
|
|
11288
11346
|
function isInt(annotations) {
|
|
11289
11347
|
return makeFilter2((n) => globalThis.Number.isSafeInteger(n), {
|
|
11290
11348
|
expected: "an integer",
|
|
@@ -20973,6 +21031,17 @@ var RunFileUrlsRequest = Struct({
|
|
|
20973
21031
|
ids: ArraySchema(Id).check(isMinLength(1), isMaxLength(200)),
|
|
20974
21032
|
use: Literals(["view", "download"])
|
|
20975
21033
|
});
|
|
21034
|
+
var maxRunFileTextBytes = 256 * 1024;
|
|
21035
|
+
var RunFileTextRequest = Struct({
|
|
21036
|
+
offset: optionalKey2(Int.check(isGreaterThanOrEqualTo2(0))),
|
|
21037
|
+
length: optionalKey2(Int.check(isBetween2({ minimum: 1, maximum: maxRunFileTextBytes })))
|
|
21038
|
+
});
|
|
21039
|
+
var RunFileText = Struct({
|
|
21040
|
+
file: RunFileView,
|
|
21041
|
+
offset: Int,
|
|
21042
|
+
end: Int,
|
|
21043
|
+
text: String5
|
|
21044
|
+
});
|
|
20976
21045
|
var RunFileRemoveRequest = Struct({
|
|
20977
21046
|
note: optionalKey2(String5.check(isMaxLength(500)))
|
|
20978
21047
|
});
|
|
@@ -25547,4 +25616,4 @@ var runKit = (config, identity, packages) => {
|
|
|
25547
25616
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
25548
25617
|
};
|
|
25549
25618
|
// .kitman-build-entry.ts
|
|
25550
|
-
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.
|
|
25619
|
+
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.14.1" }, []);
|
package/dist/declarations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/go-to-market",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Copywriting, marketing psychology and SEO audits.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"kitman.config.ts"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@kitman-sh/sdk": "0.
|
|
17
|
+
"@kitman-sh/sdk": "0.14.1"
|
|
18
18
|
},
|
|
19
19
|
"kitman": {
|
|
20
20
|
"bundle": "dist/bundle.js",
|
|
21
|
-
"digest": "
|
|
21
|
+
"digest": "b59cbea06319859f3469ecadab9a8a1fa6620ac7553d24f35ab9eb7c09df8a3e",
|
|
22
22
|
"protocolVersion": 5,
|
|
23
23
|
"declarations": "dist/declarations.json",
|
|
24
24
|
"setup": {
|