@aopslabs/aops-server 0.2.1 → 0.2.3

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.
Files changed (49) hide show
  1. package/THIRD_PARTY_NOTICES +425 -16
  2. package/THIRD_PARTY_NOTICES.inventory.json +70 -10
  3. package/build/client/_app/immutable/chunks/B88gKiyt.js +1 -0
  4. package/build/client/_app/immutable/entry/{app.a0iGCm6X.js → app.DyrORum_.js} +2 -2
  5. package/build/client/_app/immutable/entry/start.BCM14rdL.js +1 -0
  6. package/build/client/_app/immutable/nodes/{1.BtbjYUHR.js → 1.DM-iOsKD.js} +1 -1
  7. package/build/client/_app/version.json +1 -1
  8. package/build/handler.js +3 -3
  9. package/build/index.js +3 -3
  10. package/build/server/chunks/{1-UJuUicIe.js → 1-CbIMYd7N.js} +2 -2
  11. package/build/server/chunks/{_server.ts-6bdzoHJH.js → _server.ts-5jTLRkY0.js} +17 -6
  12. package/build/server/chunks/{_server.ts-u2UWBqNN.js → _server.ts-6MVYw3sO.js} +1 -1
  13. package/build/server/chunks/{_server.ts-DQzYSH_C.js → _server.ts-B7LBExsI.js} +12 -9
  14. package/build/server/chunks/{_server.ts-o9pJceJP.js → _server.ts-BF5YsxES.js} +1 -1
  15. package/build/server/chunks/{_server.ts-Ua5Ieisy.js → _server.ts-BUI8oOpK.js} +13 -10
  16. package/build/server/chunks/{_server.ts-Bz-Erv-1.js → _server.ts-BWMQcP-R.js} +1 -1
  17. package/build/server/chunks/{_server.ts-CRKd0KAC.js → _server.ts-Bd_TqS-J.js} +13 -10
  18. package/build/server/chunks/{_server.ts-BX4X0tW0.js → _server.ts-BrEAWHDb.js} +1 -1
  19. package/build/server/chunks/{_server.ts-DsTeOL2P.js → _server.ts-C1zRNRcN.js} +1 -1
  20. package/build/server/chunks/{_server.ts-DQWRrk5C.js → _server.ts-CQ436Lhs.js} +1 -1
  21. package/build/server/chunks/{_server.ts-N61POKjl.js → _server.ts-CX96Yo6-.js} +12 -9
  22. package/build/server/chunks/{_server.ts-BkxSxdd0.js → _server.ts-CkYsJYFX.js} +29 -68
  23. package/build/server/chunks/{_server.ts-DaIr3NkR.js → _server.ts-ClhXKSU-.js} +1 -1
  24. package/build/server/chunks/{_server.ts-B9gjXi95.js → _server.ts-D7mxMg8q.js} +1 -1
  25. package/build/server/chunks/{_server.ts-CjzSQgpk.js → _server.ts-DHaqrCbN.js} +11 -8
  26. package/build/server/chunks/{_server.ts-XmKDT59M.js → _server.ts-DbPb54XR.js} +13 -10
  27. package/build/server/chunks/{_server.ts-De9ZrSV0.js → _server.ts-P-bj5Kfv.js} +12 -9
  28. package/build/server/chunks/{_server.ts-AwMeEYiZ.js → _server.ts-p6Wxv_wG.js} +1 -1
  29. package/build/server/chunks/{agent-gateway-runtime-C7Kvvy0H.js → agent-gateway-runtime-DV-xLmJx.js} +39 -4
  30. package/build/server/chunks/commercial-admission-loader-ZGZHRPLe.js +480 -0
  31. package/build/server/chunks/{discovery-BvDEgiqC.js → discovery-DL0RzVks.js} +2 -2
  32. package/build/server/chunks/{error.svelte-B9R6O_Hn.js → error.svelte-BTdVSWca.js} +1 -1
  33. package/build/server/chunks/{handler-DurXhqww.js → handler-VLy1sI9x.js} +262 -2
  34. package/build/server/chunks/{hooks.server-DYGrWbgh.js → hooks.server-Zx-k_ERd.js} +1 -1
  35. package/build/server/chunks/{index.js-BQnOaW3H.js → index.js-CWgll4BT.js} +921 -924
  36. package/build/server/chunks/{manifest.js-CCJDdahY.js → manifest.js-C2lkmNzz.js} +20 -20
  37. package/build/server/chunks/{registry-DO8ob5o1.js → registry-DIreA2IZ.js} +132 -268
  38. package/cockpit/.vite/manifest.json +122 -122
  39. package/cockpit/community.module-inventory.json +30 -30
  40. package/host.config.json +140 -0
  41. package/npm-shrinkwrap.json +64 -2
  42. package/package.json +8 -2
  43. package/runtime/commercial-integrity-worker.mjs +8 -1
  44. package/runtime-closure.package.json +12 -1
  45. package/build/client/_app/immutable/chunks/BlANKL2r.js +0 -1
  46. package/build/client/_app/immutable/entry/start.Df7u6fQ1.js +0 -1
  47. package/build/server/chunks/admission-snapshot-C2wGfTWE.js +0 -1034
  48. package/build/server/chunks/canonical-text-order-DbXJJnFD.js +0 -5
  49. package/build/server/chunks/commercial-admission-loader-V_vXHdVa.js +0 -2077
@@ -7,8 +7,8 @@ import http from 'node:http';
7
7
  import { setImmediate } from 'node:timers';
8
8
  import * as qs from 'node:querystring';
9
9
  import { Readable } from 'node:stream';
10
- import { s as splitCookiesString, S as SvelteKitError, a as Server } from './index.js-BQnOaW3H.js';
11
- import { m as manifest } from './manifest.js-CCJDdahY.js';
10
+ import { S as SvelteKitError, a as Server } from './index.js-CWgll4BT.js';
11
+ import { m as manifest } from './manifest.js-C2lkmNzz.js';
12
12
  import { env, dir, env_prefix } from '../../env.js';
13
13
  import { format } from 'node:url';
14
14
 
@@ -889,6 +889,266 @@ function polka (opts) {
889
889
 
890
890
  function noop() {}
891
891
 
892
+ var defaultParseOptions = {
893
+ decodeValues: true,
894
+ map: false,
895
+ silent: false,
896
+ split: "auto", // auto = split strings but not arrays
897
+ };
898
+
899
+ function isForbiddenKey(key) {
900
+ return typeof key !== "string" || key in {};
901
+ }
902
+
903
+ function createNullObj() {
904
+ return Object.create(null);
905
+ }
906
+
907
+ function isNonEmptyString(str) {
908
+ return typeof str === "string" && !!str.trim();
909
+ }
910
+
911
+ function parseString(setCookieValue, options) {
912
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
913
+
914
+ var nameValuePairStr = parts.shift();
915
+ if (!nameValuePairStr) {
916
+ return null;
917
+ }
918
+ var parsed = parseNameValuePair(nameValuePairStr);
919
+ var name = parsed.name;
920
+ var value = parsed.value;
921
+
922
+ options = options
923
+ ? Object.assign({}, defaultParseOptions, options)
924
+ : defaultParseOptions;
925
+
926
+ if (isForbiddenKey(name)) {
927
+ return null;
928
+ }
929
+
930
+ try {
931
+ value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
932
+ } catch (e) {
933
+ console.error(
934
+ "set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",
935
+ e
936
+ );
937
+ }
938
+
939
+ var cookie = createNullObj();
940
+ cookie.name = name;
941
+ cookie.value = value;
942
+
943
+ parts.forEach(function (part) {
944
+ var sides = part.split("=");
945
+ var key = sides.shift().trim().toLowerCase();
946
+ if (isForbiddenKey(key)) {
947
+ return;
948
+ }
949
+ var value = sides.join("=").trim();
950
+ if (key === "expires") {
951
+ cookie.expires = new Date(value);
952
+ } else if (key === "max-age") {
953
+ var n = parseInt(value, 10);
954
+ if (!Number.isNaN(n)) cookie.maxAge = n;
955
+ } else if (key === "secure") {
956
+ cookie.secure = true;
957
+ } else if (key === "httponly") {
958
+ cookie.httpOnly = true;
959
+ } else if (key === "samesite") {
960
+ cookie.sameSite = value;
961
+ } else if (key === "partitioned") {
962
+ cookie.partitioned = true;
963
+ } else if (key) {
964
+ cookie[key] = value;
965
+ }
966
+ });
967
+
968
+ return cookie;
969
+ }
970
+
971
+ function parseNameValuePair(nameValuePairStr) {
972
+ // Parses name-value-pair according to rfc6265bis draft
973
+
974
+ var name = "";
975
+ var value = "";
976
+ var nameValueArr = nameValuePairStr.split("=");
977
+ if (nameValueArr.length > 1) {
978
+ name = nameValueArr.shift();
979
+ value = nameValueArr.join("="); // everything after the first =, joined by a "=" if there was more than one part
980
+ } else {
981
+ value = nameValuePairStr;
982
+ }
983
+
984
+ return { name: name, value: value };
985
+ }
986
+
987
+ function parseSetCookie(input, options) {
988
+ options = options
989
+ ? Object.assign({}, defaultParseOptions, options)
990
+ : defaultParseOptions;
991
+
992
+ if (!input) {
993
+ if (!options.map) {
994
+ return [];
995
+ } else {
996
+ return createNullObj();
997
+ }
998
+ }
999
+
1000
+ if (input.headers) {
1001
+ if (typeof input.headers.getSetCookie === "function") {
1002
+ // for fetch responses - they combine headers of the same type in the headers array,
1003
+ // but getSetCookie returns an uncombined array
1004
+ input = input.headers.getSetCookie();
1005
+ } else if (input.headers["set-cookie"]) {
1006
+ // fast-path for node.js (which automatically normalizes header names to lower-case)
1007
+ input = input.headers["set-cookie"];
1008
+ } else {
1009
+ // slow-path for other environments - see #25
1010
+ var sch =
1011
+ input.headers[
1012
+ Object.keys(input.headers).find(function (key) {
1013
+ return key.toLowerCase() === "set-cookie";
1014
+ })
1015
+ ];
1016
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
1017
+ if (!sch && input.headers.cookie && !options.silent) {
1018
+ console.warn(
1019
+ "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
1020
+ );
1021
+ }
1022
+ input = sch;
1023
+ }
1024
+ }
1025
+
1026
+ var split = options.split;
1027
+ var isArray = Array.isArray(input);
1028
+
1029
+ if (split === "auto") {
1030
+ split = !isArray;
1031
+ }
1032
+
1033
+ if (!isArray) {
1034
+ input = [input];
1035
+ }
1036
+
1037
+ input = input.filter(isNonEmptyString);
1038
+
1039
+ if (split) {
1040
+ input = input.map(splitCookiesString).flat();
1041
+ }
1042
+
1043
+ if (!options.map) {
1044
+ return input
1045
+ .map(function (str) {
1046
+ return parseString(str, options);
1047
+ })
1048
+ .filter(Boolean);
1049
+ } else {
1050
+ var cookies = createNullObj();
1051
+ return input.reduce(function (cookies, str) {
1052
+ var cookie = parseString(str, options);
1053
+ if (cookie && !isForbiddenKey(cookie.name)) {
1054
+ cookies[cookie.name] = cookie;
1055
+ }
1056
+ return cookies;
1057
+ }, cookies);
1058
+ }
1059
+ }
1060
+
1061
+ /*
1062
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
1063
+ that are within a single set-cookie field-value, such as in the Expires portion.
1064
+
1065
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
1066
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
1067
+ React Native's fetch does this for *every* header, including set-cookie.
1068
+
1069
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
1070
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
1071
+ */
1072
+ function splitCookiesString(cookiesString) {
1073
+ if (Array.isArray(cookiesString)) {
1074
+ return cookiesString;
1075
+ }
1076
+ if (typeof cookiesString !== "string") {
1077
+ return [];
1078
+ }
1079
+
1080
+ var cookiesStrings = [];
1081
+ var pos = 0;
1082
+ var start;
1083
+ var ch;
1084
+ var lastComma;
1085
+ var nextStart;
1086
+ var cookiesSeparatorFound;
1087
+
1088
+ function skipWhitespace() {
1089
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
1090
+ pos += 1;
1091
+ }
1092
+ return pos < cookiesString.length;
1093
+ }
1094
+
1095
+ function notSpecialChar() {
1096
+ ch = cookiesString.charAt(pos);
1097
+
1098
+ return ch !== "=" && ch !== ";" && ch !== ",";
1099
+ }
1100
+
1101
+ while (pos < cookiesString.length) {
1102
+ start = pos;
1103
+ cookiesSeparatorFound = false;
1104
+
1105
+ while (skipWhitespace()) {
1106
+ ch = cookiesString.charAt(pos);
1107
+ if (ch === ",") {
1108
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
1109
+ lastComma = pos;
1110
+ pos += 1;
1111
+
1112
+ skipWhitespace();
1113
+ nextStart = pos;
1114
+
1115
+ while (pos < cookiesString.length && notSpecialChar()) {
1116
+ pos += 1;
1117
+ }
1118
+
1119
+ // currently special character
1120
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
1121
+ // we found cookies separator
1122
+ cookiesSeparatorFound = true;
1123
+ // pos is inside the next cookie, so back up and return it.
1124
+ pos = nextStart;
1125
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
1126
+ start = pos;
1127
+ } else {
1128
+ // in param ',' or param separator ';',
1129
+ // we continue from that comma
1130
+ pos = lastComma + 1;
1131
+ }
1132
+ } else {
1133
+ pos += 1;
1134
+ }
1135
+ }
1136
+
1137
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
1138
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
1139
+ }
1140
+ }
1141
+
1142
+ return cookiesStrings;
1143
+ }
1144
+
1145
+ // named export for CJS
1146
+ parseSetCookie.parseSetCookie = parseSetCookie;
1147
+ // for backwards compatibility
1148
+ parseSetCookie.parse = parseSetCookie;
1149
+ parseSetCookie.parseString = parseString;
1150
+ parseSetCookie.splitCookiesString = splitCookiesString;
1151
+
892
1152
  /** @import { RemoteForm } from '@sveltejs/kit' */
893
1153
  /** @import { BinaryFormMeta, InternalRemoteFormIssue } from 'types' */
894
1154
  /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
@@ -1,4 +1,4 @@
1
- import { j as json } from './index.js-BQnOaW3H.js';
1
+ import { j as json } from './index.js-CWgll4BT.js';
2
2
  import { g as getAuthProvider } from './auth-provider-C07OUlnz.js';
3
3
 
4
4
  const TRUSTED_LOCAL_PRINCIPAL = Object.freeze({