wcz-test 6.23.2 → 6.24.0
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/_virtual/___vite-browser-external.js +7 -0
- package/dist/_virtual/___vite-browser-external.js.map +1 -0
- package/dist/_virtual/__vite-browser-external.js +5 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +37 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/index.js +8 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/components/core/AppTitle.js +1 -1
- package/dist/components/core/AppTitle.js.map +1 -1
- package/dist/components/core/Fullscreen.js +2 -2
- package/dist/components/core/Fullscreen.js.map +1 -1
- package/dist/components/core/Layout.js +7 -8
- package/dist/components/core/Layout.js.map +1 -1
- package/dist/components/core/ToolbarAccount.js +123 -143
- package/dist/components/core/ToolbarAccount.js.map +1 -1
- package/dist/components/core/TypographyWithIcon.js +2 -2
- package/dist/components/core/TypographyWithIcon.js.map +1 -1
- package/dist/components/core/navigation/NavigationList.js +2 -2
- package/dist/components/core/navigation/NavigationList.js.map +1 -1
- package/dist/components/core/navigation/NavigationListItem.js +6 -6
- package/dist/components/core/navigation/NavigationListItem.js.map +1 -1
- package/dist/components/data-grid/EditableColumnHeader.js +1 -1
- package/dist/components/data-grid/EditableColumnHeader.js.map +1 -1
- package/dist/components/file/Dropzone.js +2 -2
- package/dist/components/file/Dropzone.js.map +1 -1
- package/dist/components/file/FileViewer.js +2 -2
- package/dist/components/file/FileViewer.js.map +1 -1
- package/dist/components/file/fileViewer/FileViewerGrid.js +1 -1
- package/dist/components/file/fileViewer/FileViewerGrid.js.map +1 -1
- package/dist/components/router/RouterError.js +2 -2
- package/dist/components/router/RouterError.js.map +1 -1
- package/dist/components/router/RouterNotFound.js +2 -2
- package/dist/components/router/RouterNotFound.js.map +1 -1
- package/dist/env.d.ts +5 -2
- package/dist/env.js +11 -7
- package/dist/env.js.map +1 -1
- package/dist/exports/hooks.d.ts +0 -1
- package/dist/exports/index.d.ts +1 -0
- package/dist/exports/models.d.ts +1 -0
- package/dist/exports/queries.d.ts +1 -1
- package/dist/exports/server.d.ts +3 -0
- package/dist/hooks.js +0 -2
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/api.d.ts +3 -0
- package/dist/lib/auth/api.js +97 -0
- package/dist/lib/auth/api.js.map +1 -0
- package/dist/lib/auth/entra.d.ts +2 -0
- package/dist/lib/auth/entra.js +13 -0
- package/dist/lib/auth/entra.js.map +1 -0
- package/dist/lib/auth/graph.d.ts +17 -0
- package/dist/lib/auth/graph.js +72 -0
- package/dist/lib/auth/graph.js.map +1 -0
- package/dist/lib/auth/session.d.ts +24 -0
- package/dist/lib/auth/session.js +76 -0
- package/dist/lib/auth/session.js.map +1 -0
- package/dist/lib/queryClient.d.ts +2 -0
- package/dist/lib/queryClient.js +6 -0
- package/dist/lib/queryClient.js.map +1 -0
- package/dist/lib/utils.js.map +1 -1
- package/dist/middleware/auth.d.ts +13 -4
- package/dist/models/User.d.ts +8 -3
- package/dist/models/User.js +18 -0
- package/dist/models/User.js.map +1 -0
- package/dist/node_modules/@oslojs/binary/dist/bits.js +7 -0
- package/dist/node_modules/@oslojs/binary/dist/bits.js.map +1 -0
- package/dist/node_modules/@oslojs/binary/dist/uint.js +80 -0
- package/dist/node_modules/@oslojs/binary/dist/uint.js.map +1 -0
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js +182 -0
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha256.js.map +1 -0
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js +83 -0
- package/dist/node_modules/@oslojs/crypto/dist/sha2/sha512.js.map +1 -0
- package/dist/node_modules/@oslojs/encoding/dist/base32.js +11 -0
- package/dist/node_modules/@oslojs/encoding/dist/base32.js.map +1 -0
- package/dist/node_modules/@oslojs/encoding/dist/base64.js +46 -0
- package/dist/node_modules/@oslojs/encoding/dist/base64.js.map +1 -0
- package/dist/node_modules/@oslojs/jwt/dist/index.js +28 -0
- package/dist/node_modules/@oslojs/jwt/dist/index.js.map +1 -0
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js +11 -0
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base32.js.map +1 -0
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js +126 -0
- package/dist/node_modules/@oslojs/jwt/node_modules/@oslojs/encoding/dist/base64.js.map +1 -0
- package/dist/node_modules/arctic/dist/client.js +12 -0
- package/dist/node_modules/arctic/dist/client.js.map +1 -0
- package/dist/node_modules/arctic/dist/oauth2.js +76 -0
- package/dist/node_modules/arctic/dist/oauth2.js.map +1 -0
- package/dist/node_modules/arctic/dist/oidc.js +14 -0
- package/dist/node_modules/arctic/dist/oidc.js.map +1 -0
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js +73 -0
- package/dist/node_modules/arctic/dist/providers/microsoft-entra-id.js.map +1 -0
- package/dist/node_modules/arctic/dist/request.js +149 -0
- package/dist/node_modules/arctic/dist/request.js.map +1 -0
- package/dist/node_modules/arctic/dist/utils.js +25 -0
- package/dist/node_modules/arctic/dist/utils.js.map +1 -0
- package/dist/node_modules/base64-js/index.js +103 -0
- package/dist/node_modules/base64-js/index.js.map +1 -0
- package/dist/node_modules/buffer/index.js +1598 -0
- package/dist/node_modules/buffer/index.js.map +1 -0
- package/dist/node_modules/buffer-equal-constant-time/index.js +39 -0
- package/dist/node_modules/buffer-equal-constant-time/index.js.map +1 -0
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +140 -0
- package/dist/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js.map +1 -0
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +28 -0
- package/dist/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js.map +1 -0
- package/dist/node_modules/ieee754/index.js +88 -0
- package/dist/node_modules/ieee754/index.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/decode.js +38 -0
- package/dist/node_modules/jsonwebtoken/decode.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/index.js +25 -0
- package/dist/node_modules/jsonwebtoken/index.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +23 -0
- package/dist/node_modules/jsonwebtoken/lib/JsonWebTokenError.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js +21 -0
- package/dist/node_modules/jsonwebtoken/lib/NotBeforeError.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js +21 -0
- package/dist/node_modules/jsonwebtoken/lib/TokenExpiredError.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js +14 -0
- package/dist/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js +14 -0
- package/dist/node_modules/jsonwebtoken/lib/psSupported.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js +14 -0
- package/dist/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/timespan.js +27 -0
- package/dist/node_modules/jsonwebtoken/lib/timespan.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +60 -0
- package/dist/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js +123 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js +388 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/range.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js +288 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/classes/semver.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js +18 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/clean.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js +60 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js +53 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js +19 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/compare.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js +49 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/diff.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/eq.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gt.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/gte.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js +29 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/inc.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lt.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/lte.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/major.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/minor.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/neq.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js +27 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/parse.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/patch.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js +18 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js +22 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/sort.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js +18 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/functions/valid.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js +140 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/index.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js +36 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/constants.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js +14 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/debug.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/lrucache.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js +23 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js +96 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/internal/re.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js +19 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js +35 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js +35 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js +66 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js +81 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js +56 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js +170 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js +15 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js +21 -0
- package/dist/node_modules/jsonwebtoken/node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/sign.js +242 -0
- package/dist/node_modules/jsonwebtoken/sign.js.map +1 -0
- package/dist/node_modules/jsonwebtoken/verify.js +229 -0
- package/dist/node_modules/jsonwebtoken/verify.js.map +1 -0
- package/dist/node_modules/jwa/index.js +233 -0
- package/dist/node_modules/jwa/index.js.map +1 -0
- package/dist/node_modules/jws/index.js +40 -0
- package/dist/node_modules/jws/index.js.map +1 -0
- package/dist/node_modules/jws/lib/data-stream.js +55 -0
- package/dist/node_modules/jws/lib/data-stream.js.map +1 -0
- package/dist/node_modules/jws/lib/sign-stream.js +85 -0
- package/dist/node_modules/jws/lib/sign-stream.js.map +1 -0
- package/dist/node_modules/jws/lib/tostring.js +20 -0
- package/dist/node_modules/jws/lib/tostring.js.map +1 -0
- package/dist/node_modules/jws/lib/verify-stream.js +125 -0
- package/dist/node_modules/jws/lib/verify-stream.js.map +1 -0
- package/dist/node_modules/lodash.includes/index.js +181 -0
- package/dist/node_modules/lodash.includes/index.js.map +1 -0
- package/dist/node_modules/lodash.isboolean/index.js +21 -0
- package/dist/node_modules/lodash.isboolean/index.js.map +1 -0
- package/dist/node_modules/lodash.isinteger/index.js +67 -0
- package/dist/node_modules/lodash.isinteger/index.js.map +1 -0
- package/dist/node_modules/lodash.isnumber/index.js +21 -0
- package/dist/node_modules/lodash.isnumber/index.js.map +1 -0
- package/dist/node_modules/lodash.isplainobject/index.js +48 -0
- package/dist/node_modules/lodash.isplainobject/index.js.map +1 -0
- package/dist/node_modules/lodash.isstring/index.js +22 -0
- package/dist/node_modules/lodash.isstring/index.js.map +1 -0
- package/dist/node_modules/lodash.once/index.js +84 -0
- package/dist/node_modules/lodash.once/index.js.map +1 -0
- package/dist/node_modules/ms/index.js +121 -0
- package/dist/node_modules/ms/index.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -1
- package/dist/node_modules/safe-buffer/index.js +66 -0
- package/dist/node_modules/safe-buffer/index.js.map +1 -0
- package/dist/providers/LayoutProvider.js +2 -9
- package/dist/providers/LayoutProvider.js.map +1 -1
- package/dist/queries/ApprovalHooks.d.ts +24 -1
- package/dist/queries/ApprovalHooks.js +114 -31
- package/dist/queries/ApprovalHooks.js.map +1 -1
- package/dist/queries/FileHooks.js +53 -26
- package/dist/queries/FileHooks.js.map +1 -1
- package/dist/queries/PeopleSoftHooks.js +68 -26
- package/dist/queries/PeopleSoftHooks.js.map +1 -1
- package/dist/queries.js +3 -9
- package/dist/server.js +5 -1
- package/dist/server.js.map +1 -1
- package/package.json +14 -14
- package/dist/contexts/UserContext.d.ts +0 -7
- package/dist/contexts/UserContext.js +0 -6
- package/dist/contexts/UserContext.js.map +0 -1
- package/dist/hooks/UseHook.d.ts +0 -2
- package/dist/hooks/UseHook.js +0 -12
- package/dist/hooks/UseHook.js.map +0 -1
- package/dist/lib/auth/client.d.ts +0 -13
- package/dist/lib/auth/client.js +0 -63
- package/dist/lib/auth/client.js.map +0 -1
- package/dist/lib/auth/server.d.ts +0 -9
- package/dist/providers/UserProvider.d.ts +0 -4
- package/dist/providers/UserProvider.js +0 -94
- package/dist/providers/UserProvider.js.map +0 -1
- package/dist/queries/Approval.d.ts +0 -585
- package/dist/queries/Approval.js +0 -91
- package/dist/queries/Approval.js.map +0 -1
- package/dist/queries/UserHooks.d.ts +0 -11
- package/dist/queries/UserHooks.js +0 -157
- package/dist/queries/UserHooks.js.map +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __require as requireDecode } from "./decode.js";
|
|
2
|
+
import { __require as requireVerify } from "./verify.js";
|
|
3
|
+
import { __require as requireSign } from "./sign.js";
|
|
4
|
+
import { __require as requireJsonWebTokenError } from "./lib/JsonWebTokenError.js";
|
|
5
|
+
import { __require as requireNotBeforeError } from "./lib/NotBeforeError.js";
|
|
6
|
+
import { __require as requireTokenExpiredError } from "./lib/TokenExpiredError.js";
|
|
7
|
+
var jsonwebtoken;
|
|
8
|
+
var hasRequiredJsonwebtoken;
|
|
9
|
+
function requireJsonwebtoken() {
|
|
10
|
+
if (hasRequiredJsonwebtoken) return jsonwebtoken;
|
|
11
|
+
hasRequiredJsonwebtoken = 1;
|
|
12
|
+
jsonwebtoken = {
|
|
13
|
+
decode: requireDecode(),
|
|
14
|
+
verify: requireVerify(),
|
|
15
|
+
sign: requireSign(),
|
|
16
|
+
JsonWebTokenError: requireJsonWebTokenError(),
|
|
17
|
+
NotBeforeError: requireNotBeforeError(),
|
|
18
|
+
TokenExpiredError: requireTokenExpiredError()
|
|
19
|
+
};
|
|
20
|
+
return jsonwebtoken;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
requireJsonwebtoken as __require
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/jsonwebtoken/index.js"],"sourcesContent":["module.exports = {\n decode: require('./decode'),\n verify: require('./verify'),\n sign: require('./sign'),\n JsonWebTokenError: require('./lib/JsonWebTokenError'),\n NotBeforeError: require('./lib/NotBeforeError'),\n TokenExpiredError: require('./lib/TokenExpiredError'),\n};\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":";;;;;;;;;;;AAAA,iBAAiB;AAAA,IACf,QAAQA,cAAA;AAAA,IACR,QAAQC,cAAA;AAAA,IACR,MAAMC,YAAA;AAAA,IACN,mBAAmBC,yBAAA;AAAA,IACnB,gBAAgBC,sBAAA;AAAA,IAChB,mBAAmBC,yBAAA;AAAA;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var JsonWebTokenError_1;
|
|
2
|
+
var hasRequiredJsonWebTokenError;
|
|
3
|
+
function requireJsonWebTokenError() {
|
|
4
|
+
if (hasRequiredJsonWebTokenError) return JsonWebTokenError_1;
|
|
5
|
+
hasRequiredJsonWebTokenError = 1;
|
|
6
|
+
var JsonWebTokenError = function(message, error) {
|
|
7
|
+
Error.call(this, message);
|
|
8
|
+
if (Error.captureStackTrace) {
|
|
9
|
+
Error.captureStackTrace(this, this.constructor);
|
|
10
|
+
}
|
|
11
|
+
this.name = "JsonWebTokenError";
|
|
12
|
+
this.message = message;
|
|
13
|
+
if (error) this.inner = error;
|
|
14
|
+
};
|
|
15
|
+
JsonWebTokenError.prototype = Object.create(Error.prototype);
|
|
16
|
+
JsonWebTokenError.prototype.constructor = JsonWebTokenError;
|
|
17
|
+
JsonWebTokenError_1 = JsonWebTokenError;
|
|
18
|
+
return JsonWebTokenError_1;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
requireJsonWebTokenError as __require
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=JsonWebTokenError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonWebTokenError.js","sources":["../../../../node_modules/jsonwebtoken/lib/JsonWebTokenError.js"],"sourcesContent":["var JsonWebTokenError = function (message, error) {\n Error.call(this, message);\n if(Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n this.name = 'JsonWebTokenError';\n this.message = message;\n if (error) this.inner = error;\n};\n\nJsonWebTokenError.prototype = Object.create(Error.prototype);\nJsonWebTokenError.prototype.constructor = JsonWebTokenError;\n\nmodule.exports = JsonWebTokenError;\n"],"names":[],"mappings":";;;;;AAAA,MAAI,oBAAoB,SAAU,SAAS,OAAO;AAChD,UAAM,KAAK,MAAM,OAAO;AACxB,QAAG,MAAM,mBAAmB;AAC1B,YAAM,kBAAkB,MAAM,KAAK,WAAW;AAAA,IAClD;AACE,SAAK,OAAO;AACZ,SAAK,UAAU;AACf,QAAI,MAAO,MAAK,QAAQ;AAAA,EAC1B;AAEA,oBAAkB,YAAY,OAAO,OAAO,MAAM,SAAS;AAC3D,oBAAkB,UAAU,cAAc;AAE1C,wBAAiB;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __require as requireJsonWebTokenError } from "./JsonWebTokenError.js";
|
|
2
|
+
var NotBeforeError_1;
|
|
3
|
+
var hasRequiredNotBeforeError;
|
|
4
|
+
function requireNotBeforeError() {
|
|
5
|
+
if (hasRequiredNotBeforeError) return NotBeforeError_1;
|
|
6
|
+
hasRequiredNotBeforeError = 1;
|
|
7
|
+
var JsonWebTokenError = requireJsonWebTokenError();
|
|
8
|
+
var NotBeforeError = function(message, date) {
|
|
9
|
+
JsonWebTokenError.call(this, message);
|
|
10
|
+
this.name = "NotBeforeError";
|
|
11
|
+
this.date = date;
|
|
12
|
+
};
|
|
13
|
+
NotBeforeError.prototype = Object.create(JsonWebTokenError.prototype);
|
|
14
|
+
NotBeforeError.prototype.constructor = NotBeforeError;
|
|
15
|
+
NotBeforeError_1 = NotBeforeError;
|
|
16
|
+
return NotBeforeError_1;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
requireNotBeforeError as __require
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=NotBeforeError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotBeforeError.js","sources":["../../../../node_modules/jsonwebtoken/lib/NotBeforeError.js"],"sourcesContent":["var JsonWebTokenError = require('./JsonWebTokenError');\n\nvar NotBeforeError = function (message, date) {\n JsonWebTokenError.call(this, message);\n this.name = 'NotBeforeError';\n this.date = date;\n};\n\nNotBeforeError.prototype = Object.create(JsonWebTokenError.prototype);\n\nNotBeforeError.prototype.constructor = NotBeforeError;\n\nmodule.exports = NotBeforeError;"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,oBAAoBA,yBAAA;AAExB,MAAI,iBAAiB,SAAU,SAAS,MAAM;AAC5C,sBAAkB,KAAK,MAAM,OAAO;AACpC,SAAK,OAAO;AACZ,SAAK,OAAO;AAAA,EACd;AAEA,iBAAe,YAAY,OAAO,OAAO,kBAAkB,SAAS;AAEpE,iBAAe,UAAU,cAAc;AAEvC,qBAAiB;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __require as requireJsonWebTokenError } from "./JsonWebTokenError.js";
|
|
2
|
+
var TokenExpiredError_1;
|
|
3
|
+
var hasRequiredTokenExpiredError;
|
|
4
|
+
function requireTokenExpiredError() {
|
|
5
|
+
if (hasRequiredTokenExpiredError) return TokenExpiredError_1;
|
|
6
|
+
hasRequiredTokenExpiredError = 1;
|
|
7
|
+
var JsonWebTokenError = requireJsonWebTokenError();
|
|
8
|
+
var TokenExpiredError = function(message, expiredAt) {
|
|
9
|
+
JsonWebTokenError.call(this, message);
|
|
10
|
+
this.name = "TokenExpiredError";
|
|
11
|
+
this.expiredAt = expiredAt;
|
|
12
|
+
};
|
|
13
|
+
TokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype);
|
|
14
|
+
TokenExpiredError.prototype.constructor = TokenExpiredError;
|
|
15
|
+
TokenExpiredError_1 = TokenExpiredError;
|
|
16
|
+
return TokenExpiredError_1;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
requireTokenExpiredError as __require
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=TokenExpiredError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenExpiredError.js","sources":["../../../../node_modules/jsonwebtoken/lib/TokenExpiredError.js"],"sourcesContent":["var JsonWebTokenError = require('./JsonWebTokenError');\n\nvar TokenExpiredError = function (message, expiredAt) {\n JsonWebTokenError.call(this, message);\n this.name = 'TokenExpiredError';\n this.expiredAt = expiredAt;\n};\n\nTokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype);\n\nTokenExpiredError.prototype.constructor = TokenExpiredError;\n\nmodule.exports = TokenExpiredError;"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,oBAAoBA,yBAAA;AAExB,MAAI,oBAAoB,SAAU,SAAS,WAAW;AACpD,sBAAkB,KAAK,MAAM,OAAO;AACpC,SAAK,OAAO;AACZ,SAAK,YAAY;AAAA,EACnB;AAEA,oBAAkB,YAAY,OAAO,OAAO,kBAAkB,SAAS;AAEvE,oBAAkB,UAAU,cAAc;AAE1C,wBAAiB;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __require as requireSemver } from "../node_modules/semver/index.js";
|
|
2
|
+
var asymmetricKeyDetailsSupported;
|
|
3
|
+
var hasRequiredAsymmetricKeyDetailsSupported;
|
|
4
|
+
function requireAsymmetricKeyDetailsSupported() {
|
|
5
|
+
if (hasRequiredAsymmetricKeyDetailsSupported) return asymmetricKeyDetailsSupported;
|
|
6
|
+
hasRequiredAsymmetricKeyDetailsSupported = 1;
|
|
7
|
+
const semver = requireSemver();
|
|
8
|
+
asymmetricKeyDetailsSupported = semver.satisfies(process.version, ">=15.7.0");
|
|
9
|
+
return asymmetricKeyDetailsSupported;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
requireAsymmetricKeyDetailsSupported as __require
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=asymmetricKeyDetailsSupported.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asymmetricKeyDetailsSupported.js","sources":["../../../../node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js"],"sourcesContent":["const semver = require('semver');\n\nmodule.exports = semver.satisfies(process.version, '>=15.7.0');\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,QAAM,SAASA,cAAA;AAEf,kCAAiB,OAAO,UAAU,QAAQ,SAAS,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __require as requireSemver } from "../node_modules/semver/index.js";
|
|
2
|
+
var psSupported;
|
|
3
|
+
var hasRequiredPsSupported;
|
|
4
|
+
function requirePsSupported() {
|
|
5
|
+
if (hasRequiredPsSupported) return psSupported;
|
|
6
|
+
hasRequiredPsSupported = 1;
|
|
7
|
+
var semver = requireSemver();
|
|
8
|
+
psSupported = semver.satisfies(process.version, "^6.12.0 || >=8.0.0");
|
|
9
|
+
return psSupported;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
requirePsSupported as __require
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=psSupported.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"psSupported.js","sources":["../../../../node_modules/jsonwebtoken/lib/psSupported.js"],"sourcesContent":["var semver = require('semver');\n\nmodule.exports = semver.satisfies(process.version, '^6.12.0 || >=8.0.0');\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,SAASA,cAAA;AAEb,gBAAiB,OAAO,UAAU,QAAQ,SAAS,oBAAoB;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __require as requireSemver } from "../node_modules/semver/index.js";
|
|
2
|
+
var rsaPssKeyDetailsSupported;
|
|
3
|
+
var hasRequiredRsaPssKeyDetailsSupported;
|
|
4
|
+
function requireRsaPssKeyDetailsSupported() {
|
|
5
|
+
if (hasRequiredRsaPssKeyDetailsSupported) return rsaPssKeyDetailsSupported;
|
|
6
|
+
hasRequiredRsaPssKeyDetailsSupported = 1;
|
|
7
|
+
const semver = requireSemver();
|
|
8
|
+
rsaPssKeyDetailsSupported = semver.satisfies(process.version, ">=16.9.0");
|
|
9
|
+
return rsaPssKeyDetailsSupported;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
requireRsaPssKeyDetailsSupported as __require
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=rsaPssKeyDetailsSupported.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rsaPssKeyDetailsSupported.js","sources":["../../../../node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js"],"sourcesContent":["const semver = require('semver');\n\nmodule.exports = semver.satisfies(process.version, '>=16.9.0');\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,QAAM,SAASA,cAAA;AAEf,8BAAiB,OAAO,UAAU,QAAQ,SAAS,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __require as requireMs } from "../../ms/index.js";
|
|
2
|
+
var timespan;
|
|
3
|
+
var hasRequiredTimespan;
|
|
4
|
+
function requireTimespan() {
|
|
5
|
+
if (hasRequiredTimespan) return timespan;
|
|
6
|
+
hasRequiredTimespan = 1;
|
|
7
|
+
var ms = requireMs();
|
|
8
|
+
timespan = function(time, iat) {
|
|
9
|
+
var timestamp = iat || Math.floor(Date.now() / 1e3);
|
|
10
|
+
if (typeof time === "string") {
|
|
11
|
+
var milliseconds = ms(time);
|
|
12
|
+
if (typeof milliseconds === "undefined") {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
return Math.floor(timestamp + milliseconds / 1e3);
|
|
16
|
+
} else if (typeof time === "number") {
|
|
17
|
+
return timestamp + time;
|
|
18
|
+
} else {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return timespan;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
requireTimespan as __require
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=timespan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timespan.js","sources":["../../../../node_modules/jsonwebtoken/lib/timespan.js"],"sourcesContent":["var ms = require('ms');\n\nmodule.exports = function (time, iat) {\n var timestamp = iat || Math.floor(Date.now() / 1000);\n\n if (typeof time === 'string') {\n var milliseconds = ms(time);\n if (typeof milliseconds === 'undefined') {\n return;\n }\n return Math.floor(timestamp + milliseconds / 1000);\n } else if (typeof time === 'number') {\n return timestamp + time;\n } else {\n return;\n }\n\n};"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,KAAKA,UAAA;AAET,aAAiB,SAAU,MAAM,KAAK;AACpC,QAAI,YAAY,OAAO,KAAK,MAAM,KAAK,IAAG,IAAK,GAAI;AAEnD,QAAI,OAAO,SAAS,UAAU;AAC5B,UAAI,eAAe,GAAG,IAAI;AAC1B,UAAI,OAAO,iBAAiB,aAAa;AACvC;AAAA,MACN;AACI,aAAO,KAAK,MAAM,YAAY,eAAe,GAAI;AAAA,IACrD,WAAa,OAAO,SAAS,UAAU;AACnC,aAAO,YAAY;AAAA,IACvB,OAAS;AACL;AAAA,IACJ;AAAA,EAEA;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __require as requireAsymmetricKeyDetailsSupported } from "./asymmetricKeyDetailsSupported.js";
|
|
2
|
+
import { __require as requireRsaPssKeyDetailsSupported } from "./rsaPssKeyDetailsSupported.js";
|
|
3
|
+
var validateAsymmetricKey;
|
|
4
|
+
var hasRequiredValidateAsymmetricKey;
|
|
5
|
+
function requireValidateAsymmetricKey() {
|
|
6
|
+
if (hasRequiredValidateAsymmetricKey) return validateAsymmetricKey;
|
|
7
|
+
hasRequiredValidateAsymmetricKey = 1;
|
|
8
|
+
const ASYMMETRIC_KEY_DETAILS_SUPPORTED = requireAsymmetricKeyDetailsSupported();
|
|
9
|
+
const RSA_PSS_KEY_DETAILS_SUPPORTED = requireRsaPssKeyDetailsSupported();
|
|
10
|
+
const allowedAlgorithmsForKeys = {
|
|
11
|
+
"ec": ["ES256", "ES384", "ES512"],
|
|
12
|
+
"rsa": ["RS256", "PS256", "RS384", "PS384", "RS512", "PS512"],
|
|
13
|
+
"rsa-pss": ["PS256", "PS384", "PS512"]
|
|
14
|
+
};
|
|
15
|
+
const allowedCurves = {
|
|
16
|
+
ES256: "prime256v1",
|
|
17
|
+
ES384: "secp384r1",
|
|
18
|
+
ES512: "secp521r1"
|
|
19
|
+
};
|
|
20
|
+
validateAsymmetricKey = function(algorithm, key) {
|
|
21
|
+
if (!algorithm || !key) return;
|
|
22
|
+
const keyType = key.asymmetricKeyType;
|
|
23
|
+
if (!keyType) return;
|
|
24
|
+
const allowedAlgorithms = allowedAlgorithmsForKeys[keyType];
|
|
25
|
+
if (!allowedAlgorithms) {
|
|
26
|
+
throw new Error(`Unknown key type "${keyType}".`);
|
|
27
|
+
}
|
|
28
|
+
if (!allowedAlgorithms.includes(algorithm)) {
|
|
29
|
+
throw new Error(`"alg" parameter for "${keyType}" key type must be one of: ${allowedAlgorithms.join(", ")}.`);
|
|
30
|
+
}
|
|
31
|
+
if (ASYMMETRIC_KEY_DETAILS_SUPPORTED) {
|
|
32
|
+
switch (keyType) {
|
|
33
|
+
case "ec":
|
|
34
|
+
const keyCurve = key.asymmetricKeyDetails.namedCurve;
|
|
35
|
+
const allowedCurve = allowedCurves[algorithm];
|
|
36
|
+
if (keyCurve !== allowedCurve) {
|
|
37
|
+
throw new Error(`"alg" parameter "${algorithm}" requires curve "${allowedCurve}".`);
|
|
38
|
+
}
|
|
39
|
+
break;
|
|
40
|
+
case "rsa-pss":
|
|
41
|
+
if (RSA_PSS_KEY_DETAILS_SUPPORTED) {
|
|
42
|
+
const length = parseInt(algorithm.slice(-3), 10);
|
|
43
|
+
const { hashAlgorithm, mgf1HashAlgorithm, saltLength } = key.asymmetricKeyDetails;
|
|
44
|
+
if (hashAlgorithm !== `sha${length}` || mgf1HashAlgorithm !== hashAlgorithm) {
|
|
45
|
+
throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${algorithm}.`);
|
|
46
|
+
}
|
|
47
|
+
if (saltLength !== void 0 && saltLength > length >> 3) {
|
|
48
|
+
throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${algorithm}.`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return validateAsymmetricKey;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
requireValidateAsymmetricKey as __require
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=validateAsymmetricKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateAsymmetricKey.js","sources":["../../../../node_modules/jsonwebtoken/lib/validateAsymmetricKey.js"],"sourcesContent":["const ASYMMETRIC_KEY_DETAILS_SUPPORTED = require('./asymmetricKeyDetailsSupported');\nconst RSA_PSS_KEY_DETAILS_SUPPORTED = require('./rsaPssKeyDetailsSupported');\n\nconst allowedAlgorithmsForKeys = {\n 'ec': ['ES256', 'ES384', 'ES512'],\n 'rsa': ['RS256', 'PS256', 'RS384', 'PS384', 'RS512', 'PS512'],\n 'rsa-pss': ['PS256', 'PS384', 'PS512']\n};\n\nconst allowedCurves = {\n ES256: 'prime256v1',\n ES384: 'secp384r1',\n ES512: 'secp521r1',\n};\n\nmodule.exports = function(algorithm, key) {\n if (!algorithm || !key) return;\n\n const keyType = key.asymmetricKeyType;\n if (!keyType) return;\n\n const allowedAlgorithms = allowedAlgorithmsForKeys[keyType];\n\n if (!allowedAlgorithms) {\n throw new Error(`Unknown key type \"${keyType}\".`);\n }\n\n if (!allowedAlgorithms.includes(algorithm)) {\n throw new Error(`\"alg\" parameter for \"${keyType}\" key type must be one of: ${allowedAlgorithms.join(', ')}.`)\n }\n\n /*\n * Ignore the next block from test coverage because it gets executed\n * conditionally depending on the Node version. Not ignoring it would\n * prevent us from reaching the target % of coverage for versions of\n * Node under 15.7.0.\n */\n /* istanbul ignore next */\n if (ASYMMETRIC_KEY_DETAILS_SUPPORTED) {\n switch (keyType) {\n case 'ec':\n const keyCurve = key.asymmetricKeyDetails.namedCurve;\n const allowedCurve = allowedCurves[algorithm];\n\n if (keyCurve !== allowedCurve) {\n throw new Error(`\"alg\" parameter \"${algorithm}\" requires curve \"${allowedCurve}\".`);\n }\n break;\n\n case 'rsa-pss':\n if (RSA_PSS_KEY_DETAILS_SUPPORTED) {\n const length = parseInt(algorithm.slice(-3), 10);\n const { hashAlgorithm, mgf1HashAlgorithm, saltLength } = key.asymmetricKeyDetails;\n\n if (hashAlgorithm !== `sha${length}` || mgf1HashAlgorithm !== hashAlgorithm) {\n throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of \"alg\" ${algorithm}.`);\n }\n\n if (saltLength !== undefined && saltLength > length >> 3) {\n throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of \"alg\" ${algorithm}.`)\n }\n }\n break;\n }\n }\n}\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,QAAM,mCAAmCA,qCAAA;AACzC,QAAM,gCAAgCC,iCAAA;AAEtC,QAAM,2BAA2B;AAAA,IAC/B,MAAM,CAAC,SAAS,SAAS,OAAO;AAAA,IAChC,OAAO,CAAC,SAAS,SAAS,SAAS,SAAS,SAAS,OAAO;AAAA,IAC5D,WAAW,CAAC,SAAS,SAAS,OAAO;AAAA;AAGvC,QAAM,gBAAgB;AAAA,IACpB,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA;AAGT,0BAAiB,SAAS,WAAW,KAAK;AACxC,QAAI,CAAC,aAAa,CAAC,IAAK;AAExB,UAAM,UAAU,IAAI;AACpB,QAAI,CAAC,QAAS;AAEd,UAAM,oBAAoB,yBAAyB,OAAO;AAE1D,QAAI,CAAC,mBAAmB;AACtB,YAAM,IAAI,MAAM,qBAAqB,OAAO,IAAI;AAAA,IACpD;AAEE,QAAI,CAAC,kBAAkB,SAAS,SAAS,GAAG;AAC1C,YAAM,IAAI,MAAM,wBAAwB,OAAO,8BAA8B,kBAAkB,KAAK,IAAI,CAAC,GAAG;AAAA,IAChH;AASE,QAAI,kCAAkC;AACpC,cAAQ,SAAO;AAAA,QACf,KAAK;AACH,gBAAM,WAAW,IAAI,qBAAqB;AAC1C,gBAAM,eAAe,cAAc,SAAS;AAE5C,cAAI,aAAa,cAAc;AAC7B,kBAAM,IAAI,MAAM,oBAAoB,SAAS,qBAAqB,YAAY,IAAI;AAAA,UAC1F;AACM;AAAA,QAEF,KAAK;AACH,cAAI,+BAA+B;AACjC,kBAAM,SAAS,SAAS,UAAU,MAAM,EAAE,GAAG,EAAE;AAC/C,kBAAM,EAAE,eAAe,mBAAmB,WAAU,IAAK,IAAI;AAE7D,gBAAI,kBAAkB,MAAM,MAAM,MAAM,sBAAsB,eAAe;AAC3E,oBAAM,IAAI,MAAM,gGAAgG,SAAS,GAAG;AAAA,YACtI;AAEQ,gBAAI,eAAe,UAAa,aAAa,UAAU,GAAG;AACxD,oBAAM,IAAI,MAAM,4GAA4G,SAAS,GAAG;AAAA,YAClJ;AAAA,UACA;AACM;AAAA,MACN;AAAA,IACA;AAAA,EACA;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { __require as requireParseOptions } from "../internal/parse-options.js";
|
|
2
|
+
import { __require as requireRe } from "../internal/re.js";
|
|
3
|
+
import { __require as requireCmp } from "../functions/cmp.js";
|
|
4
|
+
import { __require as requireDebug } from "../internal/debug.js";
|
|
5
|
+
import { __require as requireSemver } from "./semver.js";
|
|
6
|
+
import { __require as requireRange } from "./range.js";
|
|
7
|
+
var comparator;
|
|
8
|
+
var hasRequiredComparator;
|
|
9
|
+
function requireComparator() {
|
|
10
|
+
if (hasRequiredComparator) return comparator;
|
|
11
|
+
hasRequiredComparator = 1;
|
|
12
|
+
const ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
13
|
+
class Comparator {
|
|
14
|
+
static get ANY() {
|
|
15
|
+
return ANY;
|
|
16
|
+
}
|
|
17
|
+
constructor(comp, options) {
|
|
18
|
+
options = parseOptions(options);
|
|
19
|
+
if (comp instanceof Comparator) {
|
|
20
|
+
if (comp.loose === !!options.loose) {
|
|
21
|
+
return comp;
|
|
22
|
+
} else {
|
|
23
|
+
comp = comp.value;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
27
|
+
debug("comparator", comp, options);
|
|
28
|
+
this.options = options;
|
|
29
|
+
this.loose = !!options.loose;
|
|
30
|
+
this.parse(comp);
|
|
31
|
+
if (this.semver === ANY) {
|
|
32
|
+
this.value = "";
|
|
33
|
+
} else {
|
|
34
|
+
this.value = this.operator + this.semver.version;
|
|
35
|
+
}
|
|
36
|
+
debug("comp", this);
|
|
37
|
+
}
|
|
38
|
+
parse(comp) {
|
|
39
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
40
|
+
const m = comp.match(r);
|
|
41
|
+
if (!m) {
|
|
42
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
43
|
+
}
|
|
44
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
45
|
+
if (this.operator === "=") {
|
|
46
|
+
this.operator = "";
|
|
47
|
+
}
|
|
48
|
+
if (!m[2]) {
|
|
49
|
+
this.semver = ANY;
|
|
50
|
+
} else {
|
|
51
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
toString() {
|
|
55
|
+
return this.value;
|
|
56
|
+
}
|
|
57
|
+
test(version) {
|
|
58
|
+
debug("Comparator.test", version, this.options.loose);
|
|
59
|
+
if (this.semver === ANY || version === ANY) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
if (typeof version === "string") {
|
|
63
|
+
try {
|
|
64
|
+
version = new SemVer(version, this.options);
|
|
65
|
+
} catch (er) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
70
|
+
}
|
|
71
|
+
intersects(comp, options) {
|
|
72
|
+
if (!(comp instanceof Comparator)) {
|
|
73
|
+
throw new TypeError("a Comparator is required");
|
|
74
|
+
}
|
|
75
|
+
if (this.operator === "") {
|
|
76
|
+
if (this.value === "") {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
return new Range(comp.value, options).test(this.value);
|
|
80
|
+
} else if (comp.operator === "") {
|
|
81
|
+
if (comp.value === "") {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
return new Range(this.value, options).test(comp.semver);
|
|
85
|
+
}
|
|
86
|
+
options = parseOptions(options);
|
|
87
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
comparator = Comparator;
|
|
112
|
+
const parseOptions = requireParseOptions();
|
|
113
|
+
const { safeRe: re, t } = requireRe();
|
|
114
|
+
const cmp = requireCmp();
|
|
115
|
+
const debug = requireDebug();
|
|
116
|
+
const SemVer = requireSemver();
|
|
117
|
+
const Range = requireRange();
|
|
118
|
+
return comparator;
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
requireComparator as __require
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=comparator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparator.js","sources":["../../../../../../node_modules/jsonwebtoken/node_modules/semver/classes/comparator.js"],"sourcesContent":["'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":"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","x_google_ignoreList":[0]}
|