@redocly/openapi-core 0.0.0-snapshot.1759760350 → 0.0.0-snapshot.1760519150
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/lib/bundle/bundle-document.d.ts +30 -0
- package/lib/bundle/bundle-document.d.ts.map +1 -0
- package/lib/bundle/bundle-document.js +78 -0
- package/lib/bundle/bundle-document.js.map +1 -0
- package/lib/bundle/bundle-visitor.d.ts +7 -0
- package/lib/bundle/bundle-visitor.d.ts.map +1 -0
- package/lib/bundle/bundle-visitor.js +230 -0
- package/lib/bundle/bundle-visitor.js.map +1 -0
- package/lib/bundle-oas.d.ts +23 -0
- package/lib/bundle-oas.d.ts.map +1 -0
- package/lib/bundle-oas.js +55 -0
- package/lib/bundle-oas.js.map +1 -0
- package/lib/bundle.d.ts +4 -15
- package/lib/bundle.d.ts.map +1 -1
- package/lib/bundle.js +6 -299
- package/lib/bundle.js.map +1 -1
- package/lib/config/bundle-extends.js +1 -1
- package/lib/config/bundle-extends.js.map +1 -1
- package/lib/config/config-resolvers.d.ts.map +1 -1
- package/lib/config/config-resolvers.js +5 -1
- package/lib/config/config-resolvers.js.map +1 -1
- package/lib/config/config.d.ts +1 -1
- package/lib/config/config.d.ts.map +1 -1
- package/lib/config/config.js +6 -4
- package/lib/config/config.js.map +1 -1
- package/lib/config/get-resolve-config.d.ts +3 -0
- package/lib/config/get-resolve-config.d.ts.map +1 -0
- package/lib/config/get-resolve-config.js +9 -0
- package/lib/config/get-resolve-config.js.map +1 -0
- package/lib/config/group-assertion-rules.d.ts +3 -0
- package/lib/config/group-assertion-rules.d.ts.map +1 -0
- package/lib/config/group-assertion-rules.js +50 -0
- package/lib/config/group-assertion-rules.js.map +1 -0
- package/lib/config/load.d.ts +2 -2
- package/lib/config/load.d.ts.map +1 -1
- package/lib/config/load.js +1 -1
- package/lib/config/load.js.map +1 -1
- package/lib/config/rules.js +1 -1
- package/lib/config/rules.js.map +1 -1
- package/lib/config/utils.d.ts.map +1 -1
- package/lib/config/utils.js +2 -1
- package/lib/config/utils.js.map +1 -1
- package/lib/config/visitors.js +1 -1
- package/lib/config/visitors.js.map +1 -1
- package/lib/decorators/common/filters/filter-helper.d.ts.map +1 -1
- package/lib/decorators/common/filters/filter-helper.js +3 -1
- package/lib/decorators/common/filters/filter-helper.js.map +1 -1
- package/lib/decorators/common/info-description-override.js +1 -1
- package/lib/decorators/common/info-description-override.js.map +1 -1
- package/lib/decorators/common/media-type-examples-override.js +1 -1
- package/lib/decorators/common/media-type-examples-override.js.map +1 -1
- package/lib/decorators/common/operation-description-override.js +1 -1
- package/lib/decorators/common/operation-description-override.js.map +1 -1
- package/lib/decorators/common/remove-x-internal.d.ts.map +1 -1
- package/lib/decorators/common/remove-x-internal.js +3 -1
- package/lib/decorators/common/remove-x-internal.js.map +1 -1
- package/lib/decorators/common/tag-description-override.js +1 -1
- package/lib/decorators/common/tag-description-override.js.map +1 -1
- package/lib/decorators/oas2/remove-unused-components.js +1 -1
- package/lib/decorators/oas2/remove-unused-components.js.map +1 -1
- package/lib/decorators/oas3/remove-unused-components.js +1 -1
- package/lib/decorators/oas3/remove-unused-components.js.map +1 -1
- package/lib/detect-spec.d.ts +5 -0
- package/lib/detect-spec.d.ts.map +1 -0
- package/lib/detect-spec.js +72 -0
- package/lib/detect-spec.js.map +1 -0
- package/lib/errors/yaml-parse-error.d.ts +9 -0
- package/lib/errors/yaml-parse-error.d.ts.map +1 -0
- package/lib/errors/yaml-parse-error.js +14 -0
- package/lib/errors/yaml-parse-error.js.map +1 -0
- package/lib/index.d.ts +20 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -4
- package/lib/index.js.map +1 -1
- package/lib/lint.d.ts +1 -1
- package/lib/lint.d.ts.map +1 -1
- package/lib/lint.js +2 -1
- package/lib/lint.js.map +1 -1
- package/lib/logger.js +1 -1
- package/lib/logger.js.map +1 -1
- package/lib/oas-types.d.ts +0 -1
- package/lib/oas-types.d.ts.map +1 -1
- package/lib/oas-types.js +0 -41
- package/lib/oas-types.js.map +1 -1
- package/lib/ref-utils.d.ts.map +1 -1
- package/lib/ref-utils.js +2 -1
- package/lib/ref-utils.js.map +1 -1
- package/lib/resolve.d.ts +1 -8
- package/lib/resolve.d.ts.map +1 -1
- package/lib/resolve.js +9 -18
- package/lib/resolve.js.map +1 -1
- package/lib/rules/common/assertions/asserts.d.ts.map +1 -1
- package/lib/rules/common/assertions/asserts.js +6 -2
- package/lib/rules/common/assertions/asserts.js.map +1 -1
- package/lib/rules/common/assertions/index.js +1 -1
- package/lib/rules/common/assertions/index.js.map +1 -1
- package/lib/rules/common/assertions/utils.d.ts +0 -8
- package/lib/rules/common/assertions/utils.d.ts.map +1 -1
- package/lib/rules/common/assertions/utils.js +4 -41
- package/lib/rules/common/assertions/utils.js.map +1 -1
- package/lib/rules/common/info-license-strict.js +1 -1
- package/lib/rules/common/info-license-strict.js.map +1 -1
- package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +1 -1
- package/lib/rules/common/no-http-verbs-in-paths.js +3 -2
- package/lib/rules/common/no-http-verbs-in-paths.js.map +1 -1
- package/lib/rules/common/no-required-schema-properties-undefined.js +1 -1
- package/lib/rules/common/no-required-schema-properties-undefined.js.map +1 -1
- package/lib/rules/common/no-unresolved-refs.js +1 -1
- package/lib/rules/common/no-unresolved-refs.js.map +1 -1
- package/lib/rules/common/path-segment-plural.js +1 -1
- package/lib/rules/common/path-segment-plural.js.map +1 -1
- package/lib/rules/common/response-contains-header.js +1 -1
- package/lib/rules/common/response-contains-header.js.map +1 -1
- package/lib/rules/common/scalar-property-missing-example.js +1 -1
- package/lib/rules/common/scalar-property-missing-example.js.map +1 -1
- package/lib/rules/common/struct.d.ts.map +1 -1
- package/lib/rules/common/struct.js +2 -1
- package/lib/rules/common/struct.js.map +1 -1
- package/lib/rules/oas2/request-mime-type.js +1 -1
- package/lib/rules/oas2/request-mime-type.js.map +1 -1
- package/lib/rules/oas2/response-contains-property.js +1 -1
- package/lib/rules/oas2/response-contains-property.js.map +1 -1
- package/lib/rules/oas2/response-mime-type.js +1 -1
- package/lib/rules/oas2/response-mime-type.js.map +1 -1
- package/lib/rules/oas3/request-mime-type.js +1 -1
- package/lib/rules/oas3/request-mime-type.js.map +1 -1
- package/lib/rules/oas3/response-contains-property.js +1 -1
- package/lib/rules/oas3/response-contains-property.js.map +1 -1
- package/lib/rules/oas3/response-mime-type.js +1 -1
- package/lib/rules/oas3/response-mime-type.js.map +1 -1
- package/lib/rules/respect/respect-supported-versions.js +1 -1
- package/lib/rules/respect/respect-supported-versions.js.map +1 -1
- package/lib/rules/utils.js +1 -1
- package/lib/rules/utils.js.map +1 -1
- package/lib/types/json-schema-adapter.js +1 -1
- package/lib/types/json-schema-adapter.js.map +1 -1
- package/lib/types/redocly-yaml.d.ts.map +1 -1
- package/lib/types/redocly-yaml.js +2 -1
- package/lib/types/redocly-yaml.js.map +1 -1
- package/lib/types.d.ts +5 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/assign-config.d.ts +7 -0
- package/lib/utils/assign-config.d.ts.map +1 -0
- package/lib/utils/assign-config.js +28 -0
- package/lib/utils/assign-config.js.map +1 -0
- package/lib/utils/does-yaml-file-exist.d.ts +2 -0
- package/lib/utils/does-yaml-file-exist.d.ts.map +1 -0
- package/lib/utils/does-yaml-file-exist.js +7 -0
- package/lib/utils/does-yaml-file-exist.js.map +1 -0
- package/lib/utils/get-intersection-length.d.ts +2 -0
- package/lib/utils/get-intersection-length.d.ts.map +1 -0
- package/lib/utils/get-intersection-length.js +11 -0
- package/lib/utils/get-intersection-length.js.map +1 -0
- package/lib/utils/get-matching-status-code-range.d.ts +2 -0
- package/lib/utils/get-matching-status-code-range.d.ts.map +1 -0
- package/lib/utils/get-matching-status-code-range.js +4 -0
- package/lib/utils/get-matching-status-code-range.js.map +1 -0
- package/lib/utils/get-own.d.ts +2 -0
- package/lib/utils/get-own.d.ts.map +1 -0
- package/lib/utils/get-own.js +4 -0
- package/lib/utils/get-own.js.map +1 -0
- package/lib/utils/identity.d.ts +2 -0
- package/lib/utils/identity.d.ts.map +1 -0
- package/lib/utils/identity.js +4 -0
- package/lib/utils/identity.js.map +1 -0
- package/lib/utils/is-custom-rule-id.d.ts +2 -0
- package/lib/utils/is-custom-rule-id.d.ts.map +1 -0
- package/lib/utils/is-custom-rule-id.js +4 -0
- package/lib/utils/is-custom-rule-id.js.map +1 -0
- package/lib/utils/is-defined.d.ts +2 -0
- package/lib/utils/is-defined.d.ts.map +1 -0
- package/lib/utils/is-defined.js +4 -0
- package/lib/utils/is-defined.js.map +1 -0
- package/lib/utils/is-empty-array.d.ts +2 -0
- package/lib/utils/is-empty-array.d.ts.map +1 -0
- package/lib/utils/is-empty-array.js +4 -0
- package/lib/utils/is-empty-array.js.map +1 -0
- package/lib/utils/is-empty-object.d.ts +2 -0
- package/lib/utils/is-empty-object.d.ts.map +1 -0
- package/lib/utils/is-empty-object.js +5 -0
- package/lib/utils/is-empty-object.js.map +1 -0
- package/lib/utils/is-not-empty-array.d.ts +2 -0
- package/lib/utils/is-not-empty-array.d.ts.map +1 -0
- package/lib/utils/is-not-empty-array.js +4 -0
- package/lib/utils/is-not-empty-array.js.map +1 -0
- package/lib/utils/is-not-empty-object.d.ts +2 -0
- package/lib/utils/is-not-empty-object.d.ts.map +1 -0
- package/lib/utils/is-not-empty-object.js +6 -0
- package/lib/utils/is-not-empty-object.js.map +1 -0
- package/lib/utils/is-not-string.d.ts +2 -0
- package/lib/utils/is-not-string.d.ts.map +1 -0
- package/lib/utils/is-not-string.js +5 -0
- package/lib/utils/is-not-string.js.map +1 -0
- package/lib/utils/is-ordered.d.ts +7 -0
- package/lib/utils/is-ordered.d.ts.map +1 -0
- package/lib/utils/is-ordered.js +27 -0
- package/lib/utils/is-ordered.js.map +1 -0
- package/lib/utils/is-path-parameter.d.ts +2 -0
- package/lib/utils/is-path-parameter.d.ts.map +1 -0
- package/lib/utils/is-path-parameter.js +4 -0
- package/lib/utils/is-path-parameter.js.map +1 -0
- package/lib/utils/is-plain-object.d.ts +2 -0
- package/lib/utils/is-plain-object.d.ts.map +1 -0
- package/lib/utils/is-plain-object.js +4 -0
- package/lib/utils/is-plain-object.js.map +1 -0
- package/lib/utils/is-string.d.ts +2 -0
- package/lib/utils/is-string.d.ts.map +1 -0
- package/lib/utils/is-string.js +4 -0
- package/lib/utils/is-string.js.map +1 -0
- package/lib/utils/is-truthy.d.ts +3 -0
- package/lib/utils/is-truthy.d.ts.map +1 -0
- package/lib/utils/is-truthy.js +4 -0
- package/lib/utils/is-truthy.js.map +1 -0
- package/lib/utils/keys-of.d.ts +2 -0
- package/lib/utils/keys-of.d.ts.map +1 -0
- package/lib/utils/keys-of.js +6 -0
- package/lib/utils/keys-of.js.map +1 -0
- package/lib/utils/make-ref-id.d.ts +2 -0
- package/lib/utils/make-ref-id.d.ts.map +1 -0
- package/lib/utils/make-ref-id.js +4 -0
- package/lib/utils/make-ref-id.js.map +1 -0
- package/lib/utils/next-tick.d.ts +2 -0
- package/lib/utils/next-tick.d.ts.map +1 -0
- package/lib/utils/next-tick.js +6 -0
- package/lib/utils/next-tick.js.map +1 -0
- package/lib/utils/omit.d.ts +2 -0
- package/lib/utils/omit.d.ts.map +1 -0
- package/lib/utils/omit.js +8 -0
- package/lib/utils/omit.js.map +1 -0
- package/lib/utils/pause.d.ts +2 -0
- package/lib/utils/pause.d.ts.map +1 -0
- package/lib/utils/pause.js +4 -0
- package/lib/utils/pause.js.map +1 -0
- package/lib/utils/pluralize.d.ts +2 -0
- package/lib/utils/pluralize.d.ts.map +1 -0
- package/lib/utils/pluralize.js +8 -0
- package/lib/utils/pluralize.js.map +1 -0
- package/lib/utils/read-file-from-url.d.ts +6 -0
- package/lib/utils/read-file-from-url.d.ts.map +1 -0
- package/lib/utils/read-file-from-url.js +26 -0
- package/lib/utils/read-file-from-url.js.map +1 -0
- package/lib/utils/regex-from-string.d.ts +2 -0
- package/lib/utils/regex-from-string.d.ts.map +1 -0
- package/lib/utils/regex-from-string.js +5 -0
- package/lib/utils/regex-from-string.js.map +1 -0
- package/lib/utils/slash.d.ts +5 -0
- package/lib/utils/slash.d.ts.map +1 -0
- package/lib/utils/slash.js +11 -0
- package/lib/utils/slash.js.map +1 -0
- package/lib/utils/split-camel-case-into-words.d.ts +2 -0
- package/lib/utils/split-camel-case-into-words.d.ts.map +1 -0
- package/lib/utils/split-camel-case-into-words.js +13 -0
- package/lib/utils/split-camel-case-into-words.js.map +1 -0
- package/lib/utils/stack.d.ts +12 -0
- package/lib/utils/stack.d.ts.map +1 -0
- package/lib/utils/stack.js +7 -0
- package/lib/utils/stack.js.map +1 -0
- package/lib/utils/validate-mime-type.d.ts +4 -0
- package/lib/utils/validate-mime-type.d.ts.map +1 -0
- package/lib/utils/validate-mime-type.js +31 -0
- package/lib/utils/validate-mime-type.js.map +1 -0
- package/lib/utils/yaml-fs-helper.d.ts +6 -0
- package/lib/utils/yaml-fs-helper.d.ts.map +1 -0
- package/lib/utils/yaml-fs-helper.js +23 -0
- package/lib/utils/yaml-fs-helper.js.map +1 -0
- package/lib/visitors.d.ts +1 -1
- package/lib/visitors.d.ts.map +1 -1
- package/lib/visitors.js +1 -1
- package/lib/visitors.js.map +1 -1
- package/lib/walk.d.ts +1 -1
- package/lib/walk.d.ts.map +1 -1
- package/lib/walk.js +4 -2
- package/lib/walk.js.map +1 -1
- package/package.json +8 -3
- package/lib/utils.d.ts +0 -61
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js +0 -204
- package/lib/utils.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-intersection-length.js","sourceRoot":"","sources":["../../src/utils/get-intersection-length.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAC,IAAc,EAAE,UAAoB;IACxE,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;IAClC,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACnB,KAAK,EAAE,CAAC;QACV,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-matching-status-code-range.d.ts","sourceRoot":"","sources":["../../src/utils/get-matching-status-code-range.ts"],"names":[],"mappings":"AAAA,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAExE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-matching-status-code-range.js","sourceRoot":"","sources":["../../src/utils/get-matching-status-code-range.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,0BAA0B,CAAC,IAAqB;IAC9D,OAAO,GAAG,IAAI,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,CAAC,GAAG,UAAU,IAAI,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-own.d.ts","sourceRoot":"","sources":["../../src/utils/get-own.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,OAE3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-own.js","sourceRoot":"","sources":["../../src/utils/get-own.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,GAAwB,EAAE,GAAW;IAC1D,OAAO,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/utils/identity.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAEvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/utils/identity.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAI,KAAQ;IAClC,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-custom-rule-id.d.ts","sourceRoot":"","sources":["../../src/utils/is-custom-rule-id.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,WAExC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-custom-rule-id.js","sourceRoot":"","sources":["../../src/utils/is-custom-rule-id.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-defined.d.ts","sourceRoot":"","sources":["../../src/utils/is-defined.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,SAAS,GAAG,CAAC,IAAI,CAAC,CAErD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-defined.js","sourceRoot":"","sources":["../../src/utils/is-defined.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAI,CAAgB;IAC3C,OAAO,CAAC,KAAK,SAAS,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-empty-array.d.ts","sourceRoot":"","sources":["../../src/utils/is-empty-array.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,EAAE,CAExD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../src/utils/is-empty-array.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-empty-object.d.ts","sourceRoot":"","sources":["../../src/utils/is-empty-object.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-empty-object.js","sourceRoot":"","sources":["../../src/utils/is-empty-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,aAAa,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-not-empty-array.d.ts","sourceRoot":"","sources":["../../src/utils/is-not-empty-array.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAElE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-not-empty-array.js","sourceRoot":"","sources":["../../src/utils/is-not-empty-array.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAI,IAAU;IAC3C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-not-empty-object.d.ts","sourceRoot":"","sources":["../../src/utils/is-not-empty-object.ts"],"names":[],"mappings":"AAGA,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAEtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-not-empty-object.js","sourceRoot":"","sources":["../../src/utils/is-not-empty-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,UAAU,gBAAgB,CAAC,GAAY;IAC3C,OAAO,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-not-string.d.ts","sourceRoot":"","sources":["../../src/utils/is-not-string.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,GAAG,KAAK,IAAI,CAAC,CAE5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-not-string.js","sourceRoot":"","sources":["../../src/utils/is-not-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,UAAU,WAAW,CAAI,KAAiB;IAC9C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type OrderDirection = 'asc' | 'desc';
|
|
2
|
+
export type OrderOptions = {
|
|
3
|
+
direction: OrderDirection;
|
|
4
|
+
property: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function isOrdered(value: any[], options: OrderOptions | OrderDirection): boolean;
|
|
7
|
+
//# sourceMappingURL=is-ordered.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-ordered.d.ts","sourceRoot":"","sources":["../../src/utils/is-ordered.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,YAAY,GAAG,cAAc,GAAG,OAAO,CA8BvF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function isOrdered(value, options) {
|
|
2
|
+
const direction = options.direction || options;
|
|
3
|
+
const property = options.property;
|
|
4
|
+
for (let i = 1; i < value.length; i++) {
|
|
5
|
+
let currValue = value[i];
|
|
6
|
+
let prevVal = value[i - 1];
|
|
7
|
+
if (property) {
|
|
8
|
+
const currPropValue = value[i][property];
|
|
9
|
+
const prevPropValue = value[i - 1][property];
|
|
10
|
+
if (!currPropValue || !prevPropValue) {
|
|
11
|
+
return false; // property doesn't exist, so collection is not ordered
|
|
12
|
+
}
|
|
13
|
+
currValue = currPropValue;
|
|
14
|
+
prevVal = prevPropValue;
|
|
15
|
+
}
|
|
16
|
+
if (typeof currValue === 'string' && typeof prevVal === 'string') {
|
|
17
|
+
currValue = currValue.toLowerCase();
|
|
18
|
+
prevVal = prevVal.toLowerCase();
|
|
19
|
+
}
|
|
20
|
+
const result = direction === 'asc' ? currValue >= prevVal : currValue <= prevVal;
|
|
21
|
+
if (!result) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=is-ordered.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-ordered.js","sourceRoot":"","sources":["../../src/utils/is-ordered.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,SAAS,CAAC,KAAY,EAAE,OAAsC;IAC5E,MAAM,SAAS,GAAI,OAAwB,CAAC,SAAS,IAAK,OAA0B,CAAC;IACrF,MAAM,QAAQ,GAAI,OAAwB,CAAC,QAAQ,CAAC;IACpD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,IAAI,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,OAAO,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3B,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;YAE7C,IAAI,CAAC,aAAa,IAAI,CAAC,aAAa,EAAE,CAAC;gBACrC,OAAO,KAAK,CAAC,CAAC,uDAAuD;YACvE,CAAC;YAED,SAAS,GAAG,aAAa,CAAC;YAC1B,OAAO,GAAG,aAAa,CAAC;QAC1B,CAAC;QAED,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YACjE,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;YACpC,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAClC,CAAC;QAED,MAAM,MAAM,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,OAAO,CAAC;QACjF,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-path-parameter.d.ts","sourceRoot":"","sources":["../../src/utils/is-path-parameter.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,WAElD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-path-parameter.js","sourceRoot":"","sources":["../../src/utils/is-path-parameter.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,WAAmB;IACjD,OAAO,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-plain-object.d.ts","sourceRoot":"","sources":["../../src/utils/is-plain-object.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAErF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../../src/utils/is-plain-object.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAA8B,KAAc;IACvE,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-string.d.ts","sourceRoot":"","sources":["../../src/utils/is-string.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-string.js","sourceRoot":"","sources":["../../src/utils/is-string.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-truthy.d.ts","sourceRoot":"","sources":["../../src/utils/is-truthy.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,GAAG,CAAC,CAAC;AAEtD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,IAAI,MAAM,CAEvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-truthy.js","sourceRoot":"","sources":["../../src/utils/is-truthy.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,QAAQ,CAAS,KAAqB;IACpD,OAAO,CAAC,CAAC,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys-of.d.ts","sourceRoot":"","sources":["../../src/utils/keys-of.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,eAG/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys-of.js","sourceRoot":"","sources":["../../src/utils/keys-of.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAI,GAAM;IAC9B,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAgB,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-ref-id.d.ts","sourceRoot":"","sources":["../../src/utils/make-ref-id.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAE7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-ref-id.js","sourceRoot":"","sources":["../../src/utils/make-ref-id.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,WAAmB,EAAE,OAAe;IAC5D,OAAO,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-tick.d.ts","sourceRoot":"","sources":["../../src/utils/next-tick.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,qBAIvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-tick.js","sourceRoot":"","sources":["../../src/utils/next-tick.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ;IACtB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,UAAU,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omit.d.ts","sourceRoot":"","sources":["../../src/utils/omit.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAQvF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omit.js","sourceRoot":"","sources":["../../src/utils/omit.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,IAAI,CAAsC,GAAM,EAAE,IAAS;IACzE,MAAM,MAAM,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;IAE1B,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../src/utils/pause.ts"],"names":[],"mappings":"AAAA,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pause.js","sourceRoot":"","sources":["../../src/utils/pause.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,KAAK,CAAC,EAAU;IACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluralize.d.ts","sourceRoot":"","sources":["../../src/utils/pluralize.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,UAK9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluralize.js","sourceRoot":"","sources":["../../src/utils/pluralize.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,WAAW,CAAC;AAErC,MAAM,UAAU,SAAS,CAAC,QAAgB,EAAE,KAAc,EAAE,SAAmB;IAC7E,OAAO,QAAQ;SACZ,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;SACnD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-file-from-url.d.ts","sourceRoot":"","sources":["../../src/utils/read-file-from-url.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB;;;GAkB3E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as picomatch from 'picomatch';
|
|
2
|
+
import { env } from '../env.js';
|
|
3
|
+
export async function readFileFromUrl(url, config) {
|
|
4
|
+
const headers = {};
|
|
5
|
+
for (const header of config.headers) {
|
|
6
|
+
if (match(url, header.matches)) {
|
|
7
|
+
headers[header.name] =
|
|
8
|
+
header.envVariable !== undefined ? env[header.envVariable] || '' : header.value;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const req = await (config.customFetch || fetch)(url, {
|
|
12
|
+
headers: headers,
|
|
13
|
+
});
|
|
14
|
+
if (!req.ok) {
|
|
15
|
+
throw new Error(`Failed to load ${url}: ${req.status} ${req.statusText}`);
|
|
16
|
+
}
|
|
17
|
+
return { body: await req.text(), mimeType: req.headers.get('content-type') };
|
|
18
|
+
}
|
|
19
|
+
function match(url, pattern) {
|
|
20
|
+
if (!pattern.match(/^https?:\/\//)) {
|
|
21
|
+
// if pattern doesn't specify protocol directly, do not match against it
|
|
22
|
+
url = url.replace(/^https?:\/\//, '');
|
|
23
|
+
}
|
|
24
|
+
return picomatch.isMatch(url, pattern);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=read-file-from-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-file-from-url.js","sourceRoot":"","sources":["../../src/utils/read-file-from-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAIhC,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW,EAAE,MAAyB;IAC1E,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACpC,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;gBAClB,MAAM,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QACpF,CAAC;IACH,CAAC;IAED,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC,CAAC,GAAG,EAAE;QACnD,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,KAAK,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;AAC/E,CAAC;AAED,SAAS,KAAK,CAAC,GAAW,EAAE,OAAe;IACzC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC;QACnC,wEAAwE;QACxE,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex-from-string.d.ts","sourceRoot":"","sources":["../../src/utils/regex-from-string.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex-from-string.js","sourceRoot":"","sources":["../../src/utils/regex-from-string.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAClD,OAAO,OAAO,IAAI,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash.d.ts","sourceRoot":"","sources":["../../src/utils/slash.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAO1C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert Windows backslash paths to slash paths: foo\\bar ➔ foo/bar
|
|
3
|
+
*/
|
|
4
|
+
export function slash(path) {
|
|
5
|
+
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
|
|
6
|
+
if (isExtendedLengthPath) {
|
|
7
|
+
return path;
|
|
8
|
+
}
|
|
9
|
+
return path.replace(/\\/g, '/');
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=slash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash.js","sourceRoot":"","sources":["../../src/utils/slash.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,KAAK,CAAC,IAAY;IAChC,MAAM,oBAAoB,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,oBAAoB,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-camel-case-into-words.d.ts","sourceRoot":"","sources":["../../src/utils/split-camel-case-into-words.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,eAUlD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isTruthy } from './is-truthy.js';
|
|
2
|
+
export function splitCamelCaseIntoWords(str) {
|
|
3
|
+
const camel = str
|
|
4
|
+
.split(/(?:[-._])|([A-Z][a-z]+)/)
|
|
5
|
+
.filter(isTruthy)
|
|
6
|
+
.map((item) => item.toLocaleLowerCase());
|
|
7
|
+
const caps = str
|
|
8
|
+
.split(/([A-Z]{2,})/)
|
|
9
|
+
.filter((e) => e && e === e.toUpperCase())
|
|
10
|
+
.map((item) => item.toLocaleLowerCase());
|
|
11
|
+
return new Set([...camel, ...caps]);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=split-camel-case-into-words.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-camel-case-into-words.js","sourceRoot":"","sources":["../../src/utils/split-camel-case-into-words.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,UAAU,uBAAuB,CAAC,GAAW;IACjD,MAAM,KAAK,GAAG,GAAG;SACd,KAAK,CAAC,yBAAyB,CAAC;SAChC,MAAM,CAAC,QAAQ,CAAC;SAChB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,GAAG;SACb,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;SACjD,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC3C,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type StackFrame<T> = {
|
|
2
|
+
prev: StackFrame<T> | null;
|
|
3
|
+
value: T;
|
|
4
|
+
};
|
|
5
|
+
export type Stack<T> = StackFrame<T> | null;
|
|
6
|
+
export type StackNonEmpty<T> = StackFrame<T>;
|
|
7
|
+
export declare function pushStack<T, P extends Stack<T> = Stack<T>>(head: P, value: T): {
|
|
8
|
+
prev: P;
|
|
9
|
+
value: T;
|
|
10
|
+
};
|
|
11
|
+
export declare function popStack<T, P extends Stack<T>>(head: P): StackFrame<T> | null;
|
|
12
|
+
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/utils/stack.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AACF,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAC5C,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAE7C,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;;;EAE5E;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,wBAEtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.js","sourceRoot":"","sources":["../../src/utils/stack.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,SAAS,CAAmC,IAAO,EAAE,KAAQ;IAC3E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,QAAQ,CAAwB,IAAO;IACrD,OAAO,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC;AAC5B,CAAC"}
|