@openclaw/google-meet 2026.7.2-beta.5 → 2026.7.33
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/{chrome-create-DMKruRFW.js → .setup/chrome-create-CFNlY-qH.mjs} +153 -132
- package/dist/{cli-GeuAaEIy.js → .setup/cli-DfOl5mwt.mjs} +716 -735
- package/dist/{config-BcaS1BDr.js → .setup/config-DeJhjNWQ.mjs} +95 -76
- package/dist/{create-af1MDlus.js → .setup/create-BVsTTJt1.mjs} +3 -21
- package/dist/{google-api-errors-CDUYkIcK.js → .setup/google-api-errors-BDYXfKRa.mjs} +1 -1
- package/dist/{oauth-DOfMKlGp.js → .setup/oauth-CtVbvmvR.mjs} +4 -3
- package/dist/doctor-contract-api.js +3 -1
- package/dist/index.js +3868 -1818
- package/node_modules/{setimmediate/LICENSE.txt → commander/LICENSE} +10 -8
- package/node_modules/commander/Readme.md +1172 -0
- package/node_modules/commander/index.js +21 -0
- package/node_modules/commander/lib/argument.js +147 -0
- package/node_modules/commander/lib/command.js +2790 -0
- package/node_modules/commander/lib/error.js +36 -0
- package/node_modules/commander/lib/help.js +731 -0
- package/node_modules/commander/lib/option.js +377 -0
- package/node_modules/commander/lib/suggestSimilar.js +99 -0
- package/node_modules/commander/package-support.json +19 -0
- package/node_modules/commander/package.json +64 -0
- package/node_modules/commander/typings/index.d.ts +1113 -0
- package/node_modules/typebox/build/compile/validator.d.mts +4 -1
- package/node_modules/typebox/build/guard/guard.d.mts +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +2 -5
- package/node_modules/typebox/build/guard/string.mjs +4 -16
- package/node_modules/typebox/build/schema/engine/_functions.mjs +15 -34
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -8
- package/node_modules/typebox/build/typebox.d.mts +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +32 -29
- package/openclaw.plugin.json +3 -4
- package/package.json +7 -9
- package/dist/cli-metadata.js +0 -13
- package/dist/cli-output-mode-BwH_6tH8.js +0 -28
- package/node_modules/core-util-is/LICENSE +0 -19
- package/node_modules/core-util-is/README.md +0 -3
- package/node_modules/core-util-is/lib/util.js +0 -107
- package/node_modules/core-util-is/package.json +0 -38
- package/node_modules/immediate/LICENSE.txt +0 -20
- package/node_modules/immediate/README.md +0 -93
- package/node_modules/immediate/dist/immediate.js +0 -75
- package/node_modules/immediate/dist/immediate.min.js +0 -1
- package/node_modules/immediate/lib/browser.js +0 -69
- package/node_modules/immediate/lib/index.js +0 -73
- package/node_modules/immediate/package.json +0 -42
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/isarray/.npmignore +0 -1
- package/node_modules/isarray/.travis.yml +0 -4
- package/node_modules/isarray/Makefile +0 -6
- package/node_modules/isarray/README.md +0 -60
- package/node_modules/isarray/component.json +0 -19
- package/node_modules/isarray/index.js +0 -5
- package/node_modules/isarray/package.json +0 -45
- package/node_modules/isarray/test.js +0 -20
- package/node_modules/jszip/.codeclimate.yml +0 -16
- package/node_modules/jszip/.editorconfig +0 -8
- package/node_modules/jszip/.eslintrc.js +0 -43
- package/node_modules/jszip/.github/workflows/pr.yaml +0 -58
- package/node_modules/jszip/.jekyll-metadata +0 -0
- package/node_modules/jszip/.travis.yml +0 -17
- package/node_modules/jszip/CHANGES.md +0 -204
- package/node_modules/jszip/LICENSE.markdown +0 -651
- package/node_modules/jszip/README.markdown +0 -33
- package/node_modules/jszip/deps.js +0 -37
- package/node_modules/jszip/dist/jszip.js +0 -11577
- package/node_modules/jszip/dist/jszip.min.js +0 -13
- package/node_modules/jszip/graph.svg +0 -601
- package/node_modules/jszip/index.d.ts +0 -330
- package/node_modules/jszip/lib/base64.js +0 -106
- package/node_modules/jszip/lib/compressedObject.js +0 -74
- package/node_modules/jszip/lib/compressions.js +0 -14
- package/node_modules/jszip/lib/crc32.js +0 -77
- package/node_modules/jszip/lib/defaults.js +0 -11
- package/node_modules/jszip/lib/external.js +0 -18
- package/node_modules/jszip/lib/flate.js +0 -85
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +0 -539
- package/node_modules/jszip/lib/generate/index.js +0 -57
- package/node_modules/jszip/lib/index.js +0 -55
- package/node_modules/jszip/lib/license_header.js +0 -11
- package/node_modules/jszip/lib/load.js +0 -88
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -42
- package/node_modules/jszip/lib/nodejsUtils.js +0 -57
- package/node_modules/jszip/lib/object.js +0 -384
- package/node_modules/jszip/lib/readable-stream-browser.js +0 -10
- package/node_modules/jszip/lib/reader/ArrayReader.js +0 -57
- package/node_modules/jszip/lib/reader/DataReader.js +0 -116
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +0 -19
- package/node_modules/jszip/lib/reader/StringReader.js +0 -38
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +0 -22
- package/node_modules/jszip/lib/reader/readerFor.js +0 -28
- package/node_modules/jszip/lib/signature.js +0 -7
- package/node_modules/jszip/lib/stream/ConvertWorker.js +0 -26
- package/node_modules/jszip/lib/stream/Crc32Probe.js +0 -24
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +0 -29
- package/node_modules/jszip/lib/stream/DataWorker.js +0 -116
- package/node_modules/jszip/lib/stream/GenericWorker.js +0 -263
- package/node_modules/jszip/lib/stream/StreamHelper.js +0 -214
- package/node_modules/jszip/lib/support.js +0 -38
- package/node_modules/jszip/lib/utf8.js +0 -275
- package/node_modules/jszip/lib/utils.js +0 -501
- package/node_modules/jszip/lib/zipEntries.js +0 -261
- package/node_modules/jszip/lib/zipEntry.js +0 -293
- package/node_modules/jszip/lib/zipObject.js +0 -133
- package/node_modules/jszip/package.json +0 -67
- package/node_modules/jszip/sponsors.md +0 -21
- package/node_modules/jszip/tsconfig.json +0 -101
- package/node_modules/jszip/vendor/FileSaver.js +0 -247
- package/node_modules/lie/README.md +0 -62
- package/node_modules/lie/dist/lie.js +0 -350
- package/node_modules/lie/dist/lie.min.js +0 -1
- package/node_modules/lie/dist/lie.polyfill.js +0 -358
- package/node_modules/lie/dist/lie.polyfill.min.js +0 -1
- package/node_modules/lie/lib/browser.js +0 -273
- package/node_modules/lie/lib/index.js +0 -298
- package/node_modules/lie/license.md +0 -7
- package/node_modules/lie/lie.d.ts +0 -244
- package/node_modules/lie/package.json +0 -69
- package/node_modules/lie/polyfill.js +0 -4
- package/node_modules/pako/CHANGELOG.md +0 -164
- package/node_modules/pako/LICENSE +0 -21
- package/node_modules/pako/README.md +0 -191
- package/node_modules/pako/dist/pako.js +0 -6818
- package/node_modules/pako/dist/pako.min.js +0 -1
- package/node_modules/pako/dist/pako_deflate.js +0 -3997
- package/node_modules/pako/dist/pako_deflate.min.js +0 -1
- package/node_modules/pako/dist/pako_inflate.js +0 -3300
- package/node_modules/pako/dist/pako_inflate.min.js +0 -1
- package/node_modules/pako/index.js +0 -14
- package/node_modules/pako/lib/deflate.js +0 -400
- package/node_modules/pako/lib/inflate.js +0 -423
- package/node_modules/pako/lib/utils/common.js +0 -105
- package/node_modules/pako/lib/utils/strings.js +0 -187
- package/node_modules/pako/lib/zlib/README +0 -59
- package/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/node_modules/pako/lib/zlib/constants.js +0 -68
- package/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/node_modules/pako/lib/zlib/deflate.js +0 -1874
- package/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/node_modules/pako/lib/zlib/inflate.js +0 -1556
- package/node_modules/pako/lib/zlib/inftrees.js +0 -343
- package/node_modules/pako/lib/zlib/messages.js +0 -32
- package/node_modules/pako/lib/zlib/trees.js +0 -1222
- package/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/node_modules/pako/package.json +0 -44
- package/node_modules/parse-ms/index.d.ts +0 -30
- package/node_modules/parse-ms/index.js +0 -45
- package/node_modules/parse-ms/license +0 -9
- package/node_modules/parse-ms/package.json +0 -47
- package/node_modules/parse-ms/readme.md +0 -46
- package/node_modules/pretty-ms/index.d.ts +0 -157
- package/node_modules/pretty-ms/index.js +0 -149
- package/node_modules/pretty-ms/license +0 -9
- package/node_modules/pretty-ms/package.json +0 -55
- package/node_modules/pretty-ms/readme.md +0 -179
- package/node_modules/process-nextick-args/index.js +0 -45
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/package.json +0 -25
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/readable-stream/.travis.yml +0 -34
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -58
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/package.json +0 -52
- package/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/readable-stream/readable.js +0 -19
- package/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/safe-buffer/package.json +0 -37
- package/node_modules/setimmediate/package.json +0 -30
- package/node_modules/setimmediate/setImmediate.js +0 -186
- package/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -31
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -27
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type TLocalizedValidationError } from '../error/index.mjs';
|
|
2
2
|
import { type StaticDecode, type StaticEncode, type TProperties, type TSchema } from '../type/index.mjs';
|
|
3
|
+
import { BuildResult, EvaluateResult } from '../schema/index.mjs';
|
|
3
4
|
export declare class Validator<Context extends TProperties = TProperties, Type extends TSchema = TSchema, Encode extends unknown = StaticEncode<Type, Context>, Decode extends unknown = StaticDecode<Type, Context>> {
|
|
4
5
|
private readonly hasCodec;
|
|
5
6
|
private readonly buildResult;
|
|
6
7
|
private readonly evaluateResult;
|
|
7
|
-
/** Constructs a Validator. */
|
|
8
|
+
/** Constructs a Validator with the given Context and Type. */
|
|
8
9
|
constructor(context: Context, type: Type);
|
|
10
|
+
/** Constructs a Validator with the given arguments. */
|
|
11
|
+
constructor(hasCodec: boolean, buildResult: BuildResult, evaluateResult: EvaluateResult);
|
|
9
12
|
/** Returns true if this Validator is using JIT acceleration. */
|
|
10
13
|
IsAccelerated(): boolean;
|
|
11
14
|
/** Returns the Context for this validator. */
|
|
@@ -61,5 +61,5 @@ export declare function Keys(value: Record<PropertyKey, unknown>): string[];
|
|
|
61
61
|
export declare function Symbols(value: Record<PropertyKey, unknown>): symbol[];
|
|
62
62
|
/** Returns the property values for the given object via `Object.values()` */
|
|
63
63
|
export declare function Values(value: Record<PropertyKey, unknown>): unknown[];
|
|
64
|
-
/**
|
|
64
|
+
/** Tests values for deep equality */
|
|
65
65
|
export declare function IsDeepEqual(left: unknown, right: unknown): boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// deno-fmt-ignore-file
|
|
2
1
|
import * as String from './string.mjs';
|
|
3
2
|
// --------------------------------------------------------------------------
|
|
4
3
|
// Guards
|
|
@@ -204,9 +203,7 @@ function DeepEqualArray(left, right) {
|
|
|
204
203
|
return IsArray(right) && IsEqual(left.length, right.length) &&
|
|
205
204
|
left.every((_, index) => IsDeepEqual(left[index], right[index]));
|
|
206
205
|
}
|
|
207
|
-
/**
|
|
206
|
+
/** Tests values for deep equality */
|
|
208
207
|
export function IsDeepEqual(left, right) {
|
|
209
|
-
return (IsArray(left) ? DeepEqualArray(left, right) :
|
|
210
|
-
IsObject(left) ? DeepEqualObject(left, right) :
|
|
211
|
-
IsEqual(left, right));
|
|
208
|
+
return (IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right));
|
|
212
209
|
}
|
|
@@ -5,18 +5,6 @@ function IsBetween(value, min, max) {
|
|
|
5
5
|
return value >= min && value <= max;
|
|
6
6
|
}
|
|
7
7
|
// --------------------------------------------------------------------------
|
|
8
|
-
// IsZeroWidthJoiner
|
|
9
|
-
// --------------------------------------------------------------------------
|
|
10
|
-
function IsZeroWidthJoiner(value) {
|
|
11
|
-
return (value === 0x200D);
|
|
12
|
-
}
|
|
13
|
-
// --------------------------------------------------------------------------
|
|
14
|
-
// IsHighSurrogate
|
|
15
|
-
// --------------------------------------------------------------------------
|
|
16
|
-
function IsHighSurrogate(value) {
|
|
17
|
-
return IsBetween(value, 0xD800, 0xDBFF);
|
|
18
|
-
}
|
|
19
|
-
// --------------------------------------------------------------------------
|
|
20
8
|
// IsRegionalIndicator
|
|
21
9
|
// --------------------------------------------------------------------------
|
|
22
10
|
function IsRegionalIndicator(value) {
|
|
@@ -84,10 +72,10 @@ function NextGraphemeClusterIndex(value, clusterStart) {
|
|
|
84
72
|
// IsGraphemeCodePoint
|
|
85
73
|
// --------------------------------------------------------------------------
|
|
86
74
|
function IsGraphemeCodePoint(value) {
|
|
87
|
-
return (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
return (IsBetween(value, 0xD800, 0xDBFF) || // High surrogate
|
|
76
|
+
IsBetween(value, 0x0300, 0x036F) || // Combining diacritical marks
|
|
77
|
+
(value === 0x200D) // Zero-width joiner
|
|
78
|
+
);
|
|
91
79
|
}
|
|
92
80
|
// --------------------------------------------------------------------------
|
|
93
81
|
// GraphemeCount
|
|
@@ -1,66 +1,47 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
+
import * as Schema from '../types/index.mjs';
|
|
2
3
|
import { Hashing } from '../../system/hashing/index.mjs';
|
|
3
4
|
import { EmitGuard as E } from '../../guard/index.mjs';
|
|
4
5
|
import { BuildSchema } from './schema.mjs';
|
|
5
|
-
const
|
|
6
|
-
const names = new Map;
|
|
7
|
-
const funcs = new Map();
|
|
8
|
-
// ------------------------------------------------------------------
|
|
9
|
-
// CreateName
|
|
10
|
-
// ------------------------------------------------------------------
|
|
11
|
-
function NextName() {
|
|
12
|
-
return Hashing.Hash(index[0]++);
|
|
13
|
-
}
|
|
14
|
-
function CreateName(schema, href) {
|
|
15
|
-
if (!names.has(schema))
|
|
16
|
-
names.set(schema, new Map());
|
|
17
|
-
const hrefs = names.get(schema);
|
|
18
|
-
if (hrefs.has(href))
|
|
19
|
-
return hrefs.get(href);
|
|
20
|
-
const name = NextName();
|
|
21
|
-
hrefs.set(href, name);
|
|
22
|
-
return name;
|
|
23
|
-
}
|
|
6
|
+
const functions = new Map();
|
|
24
7
|
// ------------------------------------------------------------------
|
|
25
8
|
// CreateCallExpression
|
|
26
9
|
// ------------------------------------------------------------------
|
|
27
|
-
function CreateCallExpression(context, _schema,
|
|
10
|
+
function CreateCallExpression(context, _schema, hash, value) {
|
|
28
11
|
return context.UseUnevaluated()
|
|
29
|
-
? E.Call(`check_${
|
|
30
|
-
: E.Call(`check_${
|
|
12
|
+
? E.Call(`check_${hash}`, ['context', value])
|
|
13
|
+
: E.Call(`check_${hash}`, [value]);
|
|
31
14
|
}
|
|
32
15
|
// ------------------------------------------------------------------
|
|
33
16
|
// CreateFunctionExpression
|
|
34
17
|
// ------------------------------------------------------------------
|
|
35
|
-
function CreateFunctionExpression(stack, context, schema,
|
|
18
|
+
function CreateFunctionExpression(stack, context, schema, hash) {
|
|
36
19
|
const expression = BuildSchema(stack, context, schema, 'value');
|
|
37
20
|
return context.UseUnevaluated()
|
|
38
|
-
? E.ConstDeclaration(`check_${
|
|
39
|
-
: E.ConstDeclaration(`check_${
|
|
21
|
+
? E.ConstDeclaration(`check_${hash}`, E.ArrowFunction(['context', 'value'], expression))
|
|
22
|
+
: E.ConstDeclaration(`check_${hash}`, E.ArrowFunction(['value'], expression));
|
|
40
23
|
}
|
|
41
24
|
// ------------------------------------------------------------------
|
|
42
25
|
// ResetFunctions
|
|
43
26
|
// ------------------------------------------------------------------
|
|
44
27
|
export function ResetFunctions() {
|
|
45
|
-
|
|
46
|
-
names.clear();
|
|
47
|
-
funcs.clear();
|
|
28
|
+
functions.clear();
|
|
48
29
|
}
|
|
49
30
|
// ------------------------------------------------------------------
|
|
50
31
|
// GetFunctions
|
|
51
32
|
// ------------------------------------------------------------------
|
|
52
33
|
export function GetFunctions() {
|
|
53
|
-
return [...
|
|
34
|
+
return [...functions.values()];
|
|
54
35
|
}
|
|
55
36
|
// ------------------------------------------------------------------
|
|
56
37
|
// CreateFunction
|
|
57
38
|
// ------------------------------------------------------------------
|
|
58
39
|
export function CreateFunction(stack, context, schema, value) {
|
|
59
|
-
const
|
|
60
|
-
const call = CreateCallExpression(context, schema,
|
|
61
|
-
if (
|
|
40
|
+
const hash = Schema.IsSchemaObject(schema) ? Hashing.Hash({ __baseURL: stack.BaseURL().href, ...schema }) : Hashing.Hash(schema);
|
|
41
|
+
const call = CreateCallExpression(context, schema, hash, value);
|
|
42
|
+
if (functions.has(hash))
|
|
62
43
|
return call;
|
|
63
|
-
|
|
64
|
-
|
|
44
|
+
functions.set(hash, '');
|
|
45
|
+
functions.set(hash, CreateFunctionExpression(stack, context, schema, hash));
|
|
65
46
|
return call;
|
|
66
47
|
}
|
|
@@ -9,8 +9,3 @@ export declare function ReadonlyObjectDeferred<Type extends TSchema>(type: Type,
|
|
|
9
9
|
export type TReadonlyObject<Type extends TSchema> = (TReadonlyObjectAction<Type>);
|
|
10
10
|
/** This type is an alias for TypeScript's `Readonly<T>` utility type. It will make all properties of a TObject readonly or marks an TArray or TTuple as immutable `readonly T[]`. */
|
|
11
11
|
export declare function ReadonlyObject<Type extends TSchema>(type: Type, options?: TSchemaOptions): TReadonlyObject<Type>;
|
|
12
|
-
/**
|
|
13
|
-
* This type has been renamed to ReadonlyObject.
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
export declare const ReadonlyType: typeof ReadonlyObject;
|
|
@@ -9,11 +9,3 @@ export function ReadonlyObjectDeferred(type, options = {}) {
|
|
|
9
9
|
export function ReadonlyObject(type, options = {}) {
|
|
10
10
|
return ReadonlyObjectAction(type, options);
|
|
11
11
|
}
|
|
12
|
-
// ------------------------------------------------------------------
|
|
13
|
-
// Alias
|
|
14
|
-
// ------------------------------------------------------------------
|
|
15
|
-
/**
|
|
16
|
-
* This type has been renamed to ReadonlyObject.
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
export const ReadonlyType = ReadonlyObject;
|
|
@@ -19,7 +19,7 @@ export { Omit, type TOmit, type TOmitDeferred } from './type/action/omit.mjs';
|
|
|
19
19
|
export { Parameters, type TParameters, type TParametersDeferred } from './type/action/parameters.mjs';
|
|
20
20
|
export { Partial, type TPartial, type TPartialDeferred } from './type/action/partial.mjs';
|
|
21
21
|
export { Pick, type TPick, type TPickDeferred } from './type/action/pick.mjs';
|
|
22
|
-
export { ReadonlyObject,
|
|
22
|
+
export { ReadonlyObject, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/readonly_object.mjs';
|
|
23
23
|
export { Required, type TRequired, type TRequiredDeferred } from './type/action/required.mjs';
|
|
24
24
|
export { ReturnType, type TReturnType, type TReturnTypeDeferred } from './type/action/return_type.mjs';
|
|
25
25
|
export { type TUncapitalize, type TUncapitalizeDeferred, Uncapitalize } from './type/action/uncapitalize.mjs';
|
|
@@ -31,7 +31,7 @@ export { Omit } from './type/action/omit.mjs';
|
|
|
31
31
|
export { Parameters } from './type/action/parameters.mjs';
|
|
32
32
|
export { Partial } from './type/action/partial.mjs';
|
|
33
33
|
export { Pick } from './type/action/pick.mjs';
|
|
34
|
-
export { ReadonlyObject
|
|
34
|
+
export { ReadonlyObject } from './type/action/readonly_object.mjs';
|
|
35
35
|
export { Required } from './type/action/required.mjs';
|
|
36
36
|
export { ReturnType } from './type/action/return_type.mjs';
|
|
37
37
|
export { Uncapitalize } from './type/action/uncapitalize.mjs';
|
|
@@ -111,24 +111,27 @@ type User = Type.Static<typeof User> // type User = {
|
|
|
111
111
|
|
|
112
112
|
## Script
|
|
113
113
|
|
|
114
|
-
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/
|
|
114
|
+
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFonmXW32POv3b7k0AdAGUAxlGBgYACjwC5eAJS9G3VWvXdqdOADkAhiFQBnMHpGpKIiADsj8ALJ6YACzgBeREWFiJ0gAaUcHCEaHAAaqgiMNAATO5wAN5wZABccNYAriDEqFAANHBIaZnZuXAAvoHBROGR0VAAzPEAogBuegA2GU6oADwRUbFwAGSJcABexVk5UBUAfFUh6AP1ACwt7V09-XXQTaNJAO5TpbPlC35KygAiqGjWACao1vD6hiZmFla28En2xq5yvF+KhvOJJFIknIBI4XBUCn4gosahFYKgyPEElUgpAjMAYMAbGkVtBVnlseloCBOsTdo1yUEghlWrTBlAYlVKkElnAAOKoHCoGBQJCYimtXIE8xGWlosgAbQAugzGcBHsBpScZkrOcjQrDcsBOmLGXADMRgM8YKy1iqgg9gBgMBkjKgbaS7XATJEMh09FB3VBVrruTV-kZXB4saaAOYCwzCop8+NCkWe6kwQ00uAG8SdXWXLT0ABKGReoHQxdQGA6dUJ1ko4ecAjA2DQsEtRgEccFiZbbclnYEEo70oE+NQIC7rYg7YJxhbEDxBJs-dng4XZEbALXc6HPYTIt3G67I6lC4nU+PHYX1ipnWv867W6bj-3Kb7M73C7PGovmavL8TwEZk303bcIzArsMyzDooIEB0nRdUEgJvZ8IObVCnwEGC8zgrCh3NS0Xngl8dwIhdcKNfCBzQgRvREX1-VIos4CEGAnA1OAAElrAwXJnnMShnWsKJ6zgKBnieKApHeZw0hBYQOKlXolggDAcwBOYFESKo5O7D8j1-aV5QABkVRdl3rAQtyCfSD1TJBh0HEzzIEO8oGpODbLgezDKc4zjDMizQJ8-SqIfRDnVdGy9J3CK4KIq1Yrs+Kejw+i0EYv0oFi8ogA) | [Example 2](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFonmXW32POv3b7k0AdACpejbuImTu1OnAByAQxCoAzmAUBjVJQB2S1eq1wAsgpgALOAG9KcOKjKRYcDRB0r4ANVQaY0AExwALyIRAIA8sQAVj4wABRWcGQAXKGCcgCuIMSoUHEAlAA0cEip-KgCmdm5BXAAvvm29o7Q8K7uXrHQAMzBaRUAogBuCgA2GWaoceUCAJI6MLkqsXEA2t6+AcUzkTG+CXAAXmVhVTl5+fX5ALr5jXYOTm1uHnAbflAALH0zw2MTi2mYXmiygy326y6UG62zCuxWiQA7id0llzrUGrdGnUZPQACKoNA6AAmqAW8n0ak02nar28sAcPzh0QRTUgKmAMGAblSpgsAne0E+hSaOmgIDGvLM5gFUJhTQyQyl-MFUH8lAalFp8AA4qgcKgYFAkEzBPD9jY7ENclytCoURUAIJQKAKJBxemLMhFJrAEnAO0OgTO13umZnGp3DWNbUmSZQYBjU0Vc3xS1wJTEYBkmDKmWq4VNYnADAYDLLPOyzZfEV2NQ+DKjBRQSsF6Nal7wYyqSwhHYsi1NADm+uURtKcD1BvHtbgEtBidGytyi-bogAShkFqB0OvUBhRrFuTpKN2VDKwNg0LBsyoBCPp8aBJeINeuaoBNab3aBJzUCA7xfN9b2fCAOS5NxnyvG0QLIU8eyg18YI-B8xyfIDkLvL9bQ-P8AMQ4CPzFKAJVGAjMIEOCzwvaCbxQ0dDXQ2j3ywmCfzwwDmJAxVyLou8qIQjC+IEecVzGXiWIEYtS3LCohMkgTzwkkDRITcT5JAzNswWZSP0UmikOE1TF10u96w0Rtm1MyjcTgABlGAzADOB5gwXIyS0Sgyx0XxjzgKAyVJPJlHPIMHKcjQAB5CDQCAMBMHsAD5LnTEKZVQxikE-NjVFWAAGa5QPA48bLsNL7wY8dsu-XKCoEYjSNKucEIyqrsIDWrCp4uCyoQ4zxOkstlia8r+rIrScxGvr4xM8zLKgGy6iAA) | [Challenge](test/typescript/readme.md)
|
|
115
|
+
|
|
116
|
+
TypeBox includes a syntax engine that can transform TypeScript declarations into JSON Schema. The engine is a full syntactic frontend to Type.* and supports many advanced type-level constructs such as Conditional, Mapped, Indexed, Infer, Generics, Distributed types and more. This feature is implemented symmetrically at runtime and statically via TypeScript Template Literal types.
|
|
117
|
+
|
|
118
|
+
Syntax highlighting is available via the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sinclairzx81.typebox-script)
|
|
115
119
|
|
|
116
|
-
TypeBox includes a runtime scripting engine that can transform TypeScript definitions into JSON Schema. The engine is implemented symmetrically at runtime and inside TypeScript's type system. It supports many programmable type-level constructs such as Conditional, Mapped, Indexed, Generic, Distributive Conditional, and more. The engine is designed for TypeScript 7 but is supported in TypeScript 5 and above.
|
|
117
120
|
|
|
118
121
|
### Example
|
|
119
122
|
|
|
120
|
-
|
|
123
|
+
The following uses Script to parse TypeScript declarations into JSON Schema.
|
|
121
124
|
|
|
122
125
|
```typescript
|
|
123
126
|
// Module
|
|
124
127
|
const Math = Type.Script(`
|
|
125
128
|
type Vector2 = { x: number, y: number }
|
|
126
|
-
type Vector3 =
|
|
127
|
-
type Vector4 =
|
|
129
|
+
type Vector3 = Evaluate<Vector2 & { z: number }>
|
|
130
|
+
type Vector4 = Evaluate<Vector3 & { w: number }>
|
|
128
131
|
`)
|
|
129
132
|
|
|
130
133
|
// Dependent Module
|
|
131
|
-
const { Mesh } = Type.Script(Math, `
|
|
134
|
+
const { Mesh } = Type.Script({ ...Math }, `
|
|
132
135
|
type Vertex = {
|
|
133
136
|
position: Vector4,
|
|
134
137
|
normal: Vector3,
|
|
@@ -295,29 +298,29 @@ The following table shows compile performance for various JSON Schema structures
|
|
|
295
298
|
┌──────────────────────┬─────────────┬─────────────┐
|
|
296
299
|
│ Compile │ TB1X │ AJV8 │
|
|
297
300
|
├──────────────────────┼─────────────┼─────────────┤
|
|
298
|
-
│ Boolean │
|
|
299
|
-
│ Number │
|
|
300
|
-
│ String │
|
|
301
|
-
│ Null │
|
|
302
|
-
│ Literal_String │
|
|
303
|
-
│ Literal_Number │
|
|
304
|
-
│ Literal_Boolean │
|
|
305
|
-
│ Pattern │
|
|
306
|
-
│ Object_Open │
|
|
307
|
-
│ Object_Close │
|
|
308
|
-
│ Object_Vector3 │
|
|
309
|
-
│ Object_Basis3 │
|
|
310
|
-
│ Intersect_And │
|
|
311
|
-
│ Intersect_Structural │
|
|
312
|
-
│ Union_Or │
|
|
313
|
-
│ Union_Structural │
|
|
314
|
-
│ Tuple_Values │
|
|
315
|
-
│ Tuple_Objects │
|
|
316
|
-
│ Array_Numbers_4 │
|
|
317
|
-
│ Array_Numbers_8 │
|
|
318
|
-
│ Array_Numbers_16 │
|
|
319
|
-
│ Array_Objects_Open │
|
|
320
|
-
│ Array_Objects_Close │
|
|
301
|
+
│ Boolean │ 29.2K ops/s │ 7.1K ops/s │
|
|
302
|
+
│ Number │ 34.5K ops/s │ 7.6K ops/s │
|
|
303
|
+
│ String │ 48.9K ops/s │ 8.7K ops/s │
|
|
304
|
+
│ Null │ 39.6K ops/s │ 7.6K ops/s │
|
|
305
|
+
│ Literal_String │ 46.8K ops/s │ 6.8K ops/s │
|
|
306
|
+
│ Literal_Number │ 48.3K ops/s │ 7.4K ops/s │
|
|
307
|
+
│ Literal_Boolean │ 48.8K ops/s │ 7.3K ops/s │
|
|
308
|
+
│ Pattern │ 32.5K ops/s │ 6.1K ops/s │
|
|
309
|
+
│ Object_Open │ 6.6K ops/s │ 1.4K ops/s │
|
|
310
|
+
│ Object_Close │ 7.6K ops/s │ 1K ops/s │
|
|
311
|
+
│ Object_Vector3 │ 20.8K ops/s │ 2.8K ops/s │
|
|
312
|
+
│ Object_Basis3 │ 7.5K ops/s │ 1K ops/s │
|
|
313
|
+
│ Intersect_And │ 23K ops/s │ 3.9K ops/s │
|
|
314
|
+
│ Intersect_Structural │ 8.7K ops/s │ 1.2K ops/s │
|
|
315
|
+
│ Union_Or │ 17.9K ops/s │ 3.4K ops/s │
|
|
316
|
+
│ Union_Structural │ 11.3K ops/s │ 2.1K ops/s │
|
|
317
|
+
│ Tuple_Values │ 9.6K ops/s │ 2.1K ops/s │
|
|
318
|
+
│ Tuple_Objects │ 2.1K ops/s │ 350 ops/s │
|
|
319
|
+
│ Array_Numbers_4 │ 33.6K ops/s │ 4.2K ops/s │
|
|
320
|
+
│ Array_Numbers_8 │ 39K ops/s │ 3.7K ops/s │
|
|
321
|
+
│ Array_Numbers_16 │ 29.6K ops/s │ 3.8K ops/s │
|
|
322
|
+
│ Array_Objects_Open │ 7.7K ops/s │ 833 ops/s │
|
|
323
|
+
│ Array_Objects_Close │ 7.6K ops/s │ 860 ops/s │
|
|
321
324
|
└──────────────────────┴─────────────┴─────────────┘
|
|
322
325
|
```
|
|
323
326
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "Google Meet",
|
|
4
4
|
"description": "OpenClaw Google Meet participant plugin for joining calls through Chrome or Twilio transports.",
|
|
5
5
|
"icon": "https://cdn.simpleicons.org/googlemeet",
|
|
6
|
-
"enabledByDefault":
|
|
6
|
+
"enabledByDefault": false,
|
|
7
7
|
"commandAliases": [{ "name": "googlemeet" }],
|
|
8
8
|
"activation": {
|
|
9
9
|
"onStartup": true,
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"onCapabilities": ["tool"]
|
|
12
12
|
},
|
|
13
13
|
"contracts": {
|
|
14
|
-
"tools": ["google_meet"]
|
|
15
|
-
"transcriptSourceProviders": ["google-meet"]
|
|
14
|
+
"tools": ["google_meet"]
|
|
16
15
|
},
|
|
17
16
|
"uiHints": {
|
|
18
17
|
"defaults.meeting": {
|
|
@@ -426,7 +425,7 @@
|
|
|
426
425
|
},
|
|
427
426
|
"dtmfDelayMs": {
|
|
428
427
|
"type": "number",
|
|
429
|
-
"default":
|
|
428
|
+
"default": 2500
|
|
430
429
|
},
|
|
431
430
|
"postDtmfSpeechDelayMs": {
|
|
432
431
|
"type": "number",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/google-meet",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.33",
|
|
4
4
|
"description": "OpenClaw Google Meet participant plugin for joining calls through Chrome or Twilio transports.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"typebox": "1.3.6"
|
|
11
|
+
"commander": "15.0.0",
|
|
12
|
+
"typebox": "1.3.3"
|
|
14
13
|
},
|
|
15
14
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.7.
|
|
15
|
+
"openclaw": ">=2026.7.33"
|
|
17
16
|
},
|
|
18
17
|
"peerDependenciesMeta": {
|
|
19
18
|
"openclaw": {
|
|
@@ -30,10 +29,10 @@
|
|
|
30
29
|
"minHostVersion": ">=2026.4.20"
|
|
31
30
|
},
|
|
32
31
|
"compat": {
|
|
33
|
-
"pluginApi": ">=2026.7.
|
|
32
|
+
"pluginApi": ">=2026.7.33"
|
|
34
33
|
},
|
|
35
34
|
"build": {
|
|
36
|
-
"openclawVersion": "2026.7.
|
|
35
|
+
"openclawVersion": "2026.7.33"
|
|
37
36
|
},
|
|
38
37
|
"release": {
|
|
39
38
|
"publishToClawHub": true,
|
|
@@ -49,8 +48,7 @@
|
|
|
49
48
|
"README.md"
|
|
50
49
|
],
|
|
51
50
|
"bundledDependencies": [
|
|
52
|
-
"
|
|
53
|
-
"pretty-ms",
|
|
51
|
+
"commander",
|
|
54
52
|
"typebox"
|
|
55
53
|
]
|
|
56
54
|
}
|
package/dist/cli-metadata.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { t as GOOGLE_MEET_CLI_DESCRIPTOR } from "./cli-output-mode-BwH_6tH8.js";
|
|
2
|
-
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
|
-
//#region extensions/google-meet/cli-metadata.ts
|
|
4
|
-
var cli_metadata_default = definePluginEntry({
|
|
5
|
-
id: "google-meet",
|
|
6
|
-
name: "Google Meet",
|
|
7
|
-
description: "Google Meet CLI metadata",
|
|
8
|
-
register(api) {
|
|
9
|
-
api.registerCli(() => {}, { descriptors: [GOOGLE_MEET_CLI_DESCRIPTOR] });
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { cli_metadata_default as default };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { getRootOptionAwareCommandPath } from "openclaw/plugin-sdk/cli-argv";
|
|
2
|
-
//#region extensions/google-meet/src/cli-output-mode.ts
|
|
3
|
-
const DEFAULT_JSON_COMMANDS = /* @__PURE__ */ new Set([
|
|
4
|
-
"join",
|
|
5
|
-
"status",
|
|
6
|
-
"test-listen",
|
|
7
|
-
"test-speech"
|
|
8
|
-
]);
|
|
9
|
-
function hasOption(argv, flag) {
|
|
10
|
-
for (const arg of argv.slice(2)) {
|
|
11
|
-
if (arg === "--") return false;
|
|
12
|
-
if (arg === flag || arg.startsWith(`${flag}=`)) return true;
|
|
13
|
-
}
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
/** Runtime probe commands emit JSON without requiring the shared `--json` option. */
|
|
17
|
-
function isGoogleMeetMachineOutput(params) {
|
|
18
|
-
const [, command] = getRootOptionAwareCommandPath(params.argv, 2);
|
|
19
|
-
return DEFAULT_JSON_COMMANDS.has(command ?? "") || command === "export" && hasOption(params.argv, "--dry-run");
|
|
20
|
-
}
|
|
21
|
-
const GOOGLE_MEET_CLI_DESCRIPTOR = {
|
|
22
|
-
name: "googlemeet",
|
|
23
|
-
description: "Join and manage Google Meet calls",
|
|
24
|
-
hasSubcommands: true,
|
|
25
|
-
machineOutput: isGoogleMeetMachineOutput
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { GOOGLE_MEET_CLI_DESCRIPTOR as t };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Copyright Node.js contributors. All rights reserved.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to
|
|
5
|
-
deal in the Software without restriction, including without limitation the
|
|
6
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
|
11
|
-
all copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
18
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
19
|
-
IN THE SOFTWARE.
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
-
// copy of this software and associated documentation files (the
|
|
5
|
-
// "Software"), to deal in the Software without restriction, including
|
|
6
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
-
// following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included
|
|
12
|
-
// in all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
-
|
|
22
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
23
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
24
|
-
|
|
25
|
-
function isArray(arg) {
|
|
26
|
-
if (Array.isArray) {
|
|
27
|
-
return Array.isArray(arg);
|
|
28
|
-
}
|
|
29
|
-
return objectToString(arg) === '[object Array]';
|
|
30
|
-
}
|
|
31
|
-
exports.isArray = isArray;
|
|
32
|
-
|
|
33
|
-
function isBoolean(arg) {
|
|
34
|
-
return typeof arg === 'boolean';
|
|
35
|
-
}
|
|
36
|
-
exports.isBoolean = isBoolean;
|
|
37
|
-
|
|
38
|
-
function isNull(arg) {
|
|
39
|
-
return arg === null;
|
|
40
|
-
}
|
|
41
|
-
exports.isNull = isNull;
|
|
42
|
-
|
|
43
|
-
function isNullOrUndefined(arg) {
|
|
44
|
-
return arg == null;
|
|
45
|
-
}
|
|
46
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
47
|
-
|
|
48
|
-
function isNumber(arg) {
|
|
49
|
-
return typeof arg === 'number';
|
|
50
|
-
}
|
|
51
|
-
exports.isNumber = isNumber;
|
|
52
|
-
|
|
53
|
-
function isString(arg) {
|
|
54
|
-
return typeof arg === 'string';
|
|
55
|
-
}
|
|
56
|
-
exports.isString = isString;
|
|
57
|
-
|
|
58
|
-
function isSymbol(arg) {
|
|
59
|
-
return typeof arg === 'symbol';
|
|
60
|
-
}
|
|
61
|
-
exports.isSymbol = isSymbol;
|
|
62
|
-
|
|
63
|
-
function isUndefined(arg) {
|
|
64
|
-
return arg === void 0;
|
|
65
|
-
}
|
|
66
|
-
exports.isUndefined = isUndefined;
|
|
67
|
-
|
|
68
|
-
function isRegExp(re) {
|
|
69
|
-
return objectToString(re) === '[object RegExp]';
|
|
70
|
-
}
|
|
71
|
-
exports.isRegExp = isRegExp;
|
|
72
|
-
|
|
73
|
-
function isObject(arg) {
|
|
74
|
-
return typeof arg === 'object' && arg !== null;
|
|
75
|
-
}
|
|
76
|
-
exports.isObject = isObject;
|
|
77
|
-
|
|
78
|
-
function isDate(d) {
|
|
79
|
-
return objectToString(d) === '[object Date]';
|
|
80
|
-
}
|
|
81
|
-
exports.isDate = isDate;
|
|
82
|
-
|
|
83
|
-
function isError(e) {
|
|
84
|
-
return (objectToString(e) === '[object Error]' || e instanceof Error);
|
|
85
|
-
}
|
|
86
|
-
exports.isError = isError;
|
|
87
|
-
|
|
88
|
-
function isFunction(arg) {
|
|
89
|
-
return typeof arg === 'function';
|
|
90
|
-
}
|
|
91
|
-
exports.isFunction = isFunction;
|
|
92
|
-
|
|
93
|
-
function isPrimitive(arg) {
|
|
94
|
-
return arg === null ||
|
|
95
|
-
typeof arg === 'boolean' ||
|
|
96
|
-
typeof arg === 'number' ||
|
|
97
|
-
typeof arg === 'string' ||
|
|
98
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
99
|
-
typeof arg === 'undefined';
|
|
100
|
-
}
|
|
101
|
-
exports.isPrimitive = isPrimitive;
|
|
102
|
-
|
|
103
|
-
exports.isBuffer = require('buffer').Buffer.isBuffer;
|
|
104
|
-
|
|
105
|
-
function objectToString(o) {
|
|
106
|
-
return Object.prototype.toString.call(o);
|
|
107
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "core-util-is",
|
|
3
|
-
"version": "1.0.3",
|
|
4
|
-
"description": "The `util.is*` functions introduced in Node v0.12.",
|
|
5
|
-
"main": "lib/util.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"lib"
|
|
8
|
-
],
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git://github.com/isaacs/core-util-is"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"util",
|
|
15
|
-
"isBuffer",
|
|
16
|
-
"isArray",
|
|
17
|
-
"isNumber",
|
|
18
|
-
"isString",
|
|
19
|
-
"isRegExp",
|
|
20
|
-
"isThis",
|
|
21
|
-
"isThat",
|
|
22
|
-
"polyfill"
|
|
23
|
-
],
|
|
24
|
-
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://github.com/isaacs/core-util-is/issues"
|
|
28
|
-
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"test": "tap test.js",
|
|
31
|
-
"preversion": "npm test",
|
|
32
|
-
"postversion": "npm publish",
|
|
33
|
-
"prepublishOnly": "git push origin --follow-tags"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"tap": "^15.0.9"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|