@agnostack/verifyd 1.0.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.
Files changed (215) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/CODE_OF_CONDUCT.md +132 -0
  3. package/LICENSE +21 -0
  4. package/README.md +93 -0
  5. package/SECURITY.md +18 -0
  6. package/dist/lib/index.d.ts +4 -0
  7. package/dist/lib/index.d.ts.map +1 -0
  8. package/dist/lib/index.js +20 -0
  9. package/dist/lib/index.js.map +1 -0
  10. package/dist/lib/types.d.ts +1 -0
  11. package/dist/lib/types.d.ts.map +1 -0
  12. package/dist/lib/types.js +1 -0
  13. package/dist/lib/types.js.map +1 -0
  14. package/dist/lib/utils/errors.d.ts +6 -0
  15. package/dist/lib/utils/errors.d.ts.map +1 -0
  16. package/dist/lib/utils/errors.js +26 -0
  17. package/dist/lib/utils/errors.js.map +1 -0
  18. package/dist/lib/utils/index.d.ts +3 -0
  19. package/dist/lib/utils/index.d.ts.map +1 -0
  20. package/dist/lib/utils/index.js +19 -0
  21. package/dist/lib/utils/index.js.map +1 -0
  22. package/dist/lib/utils/rawbody.d.ts +2 -0
  23. package/dist/lib/utils/rawbody.d.ts.map +1 -0
  24. package/dist/lib/utils/rawbody.js +60 -0
  25. package/dist/lib/utils/rawbody.js.map +1 -0
  26. package/dist/lib/verification.d.ts +10 -0
  27. package/dist/lib/verification.d.ts.map +1 -0
  28. package/dist/lib/verification.js +84 -0
  29. package/dist/lib/verification.js.map +1 -0
  30. package/dist/react/hooks/index.d.ts +2 -0
  31. package/dist/react/hooks/index.d.ts.map +1 -0
  32. package/dist/react/hooks/index.js +18 -0
  33. package/dist/react/hooks/index.js.map +1 -0
  34. package/dist/react/hooks/useVerification.d.ts +8 -0
  35. package/dist/react/hooks/useVerification.d.ts.map +1 -0
  36. package/dist/react/hooks/useVerification.js +52 -0
  37. package/dist/react/hooks/useVerification.js.map +1 -0
  38. package/dist/react/index.d.ts +3 -0
  39. package/dist/react/index.d.ts.map +1 -0
  40. package/dist/react/index.js +19 -0
  41. package/dist/react/index.js.map +1 -0
  42. package/dist/react/types.d.ts +1 -0
  43. package/dist/react/types.d.ts.map +1 -0
  44. package/dist/react/types.js +1 -0
  45. package/dist/react/types.js.map +1 -0
  46. package/dist/shared/WebCrypto.d.ts +55 -0
  47. package/dist/shared/WebCrypto.d.ts.map +1 -0
  48. package/dist/shared/WebCrypto.js +342 -0
  49. package/dist/shared/WebCrypto.js.map +1 -0
  50. package/dist/shared/datetime.d.ts +96 -0
  51. package/dist/shared/datetime.d.ts.map +1 -0
  52. package/dist/shared/datetime.js +295 -0
  53. package/dist/shared/datetime.js.map +1 -0
  54. package/dist/shared/display.d.ts +100 -0
  55. package/dist/shared/display.d.ts.map +1 -0
  56. package/dist/shared/display.js +481 -0
  57. package/dist/shared/display.js.map +1 -0
  58. package/dist/shared/index.d.ts +6 -0
  59. package/dist/shared/index.d.ts.map +1 -0
  60. package/dist/shared/index.js +28 -0
  61. package/dist/shared/index.js.map +1 -0
  62. package/dist/shared/request.d.ts +16 -0
  63. package/dist/shared/request.d.ts.map +1 -0
  64. package/dist/shared/request.js +60 -0
  65. package/dist/shared/request.js.map +1 -0
  66. package/dist/shared/types.d.ts +1 -0
  67. package/dist/shared/types.d.ts.map +1 -0
  68. package/dist/shared/types.js +1 -0
  69. package/dist/shared/types.js.map +1 -0
  70. package/dist/shared/verification.d.ts +31 -0
  71. package/dist/shared/verification.d.ts.map +1 -0
  72. package/dist/shared/verification.js +91 -0
  73. package/dist/shared/verification.js.map +1 -0
  74. package/dist/umd/lib/index.js +2204 -0
  75. package/dist/umd/lib/index.js.map +1 -0
  76. package/dist/umd/lib/lib/index.d.ts +4 -0
  77. package/dist/umd/lib/lib/index.d.ts.map +1 -0
  78. package/dist/umd/lib/lib/types.d.ts +1 -0
  79. package/dist/umd/lib/lib/types.d.ts.map +1 -0
  80. package/dist/umd/lib/lib/utils/errors.d.ts +6 -0
  81. package/dist/umd/lib/lib/utils/errors.d.ts.map +1 -0
  82. package/dist/umd/lib/lib/utils/index.d.ts +3 -0
  83. package/dist/umd/lib/lib/utils/index.d.ts.map +1 -0
  84. package/dist/umd/lib/lib/utils/rawbody.d.ts +2 -0
  85. package/dist/umd/lib/lib/utils/rawbody.d.ts.map +1 -0
  86. package/dist/umd/lib/lib/verification.d.ts +10 -0
  87. package/dist/umd/lib/lib/verification.d.ts.map +1 -0
  88. package/dist/umd/lib/react/hooks/index.d.ts +2 -0
  89. package/dist/umd/lib/react/hooks/index.d.ts.map +1 -0
  90. package/dist/umd/lib/react/hooks/useVerification.d.ts +8 -0
  91. package/dist/umd/lib/react/hooks/useVerification.d.ts.map +1 -0
  92. package/dist/umd/lib/react/index.d.ts +3 -0
  93. package/dist/umd/lib/react/index.d.ts.map +1 -0
  94. package/dist/umd/lib/react/types.d.ts +1 -0
  95. package/dist/umd/lib/react/types.d.ts.map +1 -0
  96. package/dist/umd/lib/shared/WebCrypto.d.ts +55 -0
  97. package/dist/umd/lib/shared/WebCrypto.d.ts.map +1 -0
  98. package/dist/umd/lib/shared/datetime.d.ts +96 -0
  99. package/dist/umd/lib/shared/datetime.d.ts.map +1 -0
  100. package/dist/umd/lib/shared/display.d.ts +100 -0
  101. package/dist/umd/lib/shared/display.d.ts.map +1 -0
  102. package/dist/umd/lib/shared/index.d.ts +6 -0
  103. package/dist/umd/lib/shared/index.d.ts.map +1 -0
  104. package/dist/umd/lib/shared/request.d.ts +16 -0
  105. package/dist/umd/lib/shared/request.d.ts.map +1 -0
  106. package/dist/umd/lib/shared/types.d.ts +1 -0
  107. package/dist/umd/lib/shared/types.d.ts.map +1 -0
  108. package/dist/umd/lib/shared/verification.d.ts +31 -0
  109. package/dist/umd/lib/shared/verification.d.ts.map +1 -0
  110. package/node_modules/browser-monads-ts/LICENSE +21 -0
  111. package/node_modules/browser-monads-ts/README.md +46 -0
  112. package/node_modules/browser-monads-ts/dist/browser-monads-ts.cjs.js +2 -0
  113. package/node_modules/browser-monads-ts/dist/browser-monads-ts.cjs.js.map +1 -0
  114. package/node_modules/browser-monads-ts/dist/browser-monads-ts.es.js +12 -0
  115. package/node_modules/browser-monads-ts/dist/browser-monads-ts.es.js.map +1 -0
  116. package/node_modules/browser-monads-ts/dist/index.d.ts +5 -0
  117. package/node_modules/browser-monads-ts/dist/index.d.ts.map +1 -0
  118. package/node_modules/browser-monads-ts/package.json +79 -0
  119. package/node_modules/bytes/History.md +97 -0
  120. package/node_modules/bytes/LICENSE +23 -0
  121. package/node_modules/bytes/Readme.md +152 -0
  122. package/node_modules/bytes/index.js +170 -0
  123. package/node_modules/bytes/package.json +42 -0
  124. package/node_modules/depd/History.md +103 -0
  125. package/node_modules/depd/LICENSE +22 -0
  126. package/node_modules/depd/Readme.md +280 -0
  127. package/node_modules/depd/index.js +538 -0
  128. package/node_modules/depd/lib/browser/index.js +77 -0
  129. package/node_modules/depd/package.json +45 -0
  130. package/node_modules/http-errors/HISTORY.md +180 -0
  131. package/node_modules/http-errors/LICENSE +23 -0
  132. package/node_modules/http-errors/README.md +169 -0
  133. package/node_modules/http-errors/index.js +289 -0
  134. package/node_modules/http-errors/package.json +50 -0
  135. package/node_modules/iconv-lite/Changelog.md +162 -0
  136. package/node_modules/iconv-lite/LICENSE +21 -0
  137. package/node_modules/iconv-lite/README.md +156 -0
  138. package/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
  139. package/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
  140. package/node_modules/iconv-lite/encodings/index.js +22 -0
  141. package/node_modules/iconv-lite/encodings/internal.js +188 -0
  142. package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  143. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  144. package/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
  145. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  146. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  147. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  148. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  149. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  150. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  151. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
  152. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  153. package/node_modules/iconv-lite/encodings/utf16.js +177 -0
  154. package/node_modules/iconv-lite/encodings/utf7.js +290 -0
  155. package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  156. package/node_modules/iconv-lite/lib/extend-node.js +217 -0
  157. package/node_modules/iconv-lite/lib/index.d.ts +24 -0
  158. package/node_modules/iconv-lite/lib/index.js +153 -0
  159. package/node_modules/iconv-lite/lib/streams.js +121 -0
  160. package/node_modules/iconv-lite/package.json +46 -0
  161. package/node_modules/inherits/LICENSE +16 -0
  162. package/node_modules/inherits/README.md +42 -0
  163. package/node_modules/inherits/inherits.js +9 -0
  164. package/node_modules/inherits/inherits_browser.js +27 -0
  165. package/node_modules/inherits/package.json +29 -0
  166. package/node_modules/nothing-mock/LICENSE +21 -0
  167. package/node_modules/nothing-mock/README.md +266 -0
  168. package/node_modules/nothing-mock/dist/nothing-mock.es.js +2 -0
  169. package/node_modules/nothing-mock/dist/nothing-mock.es.js.map +1 -0
  170. package/node_modules/nothing-mock/dist/nothing-mock.js +2 -0
  171. package/node_modules/nothing-mock/dist/nothing-mock.js.map +1 -0
  172. package/node_modules/nothing-mock/dist/nothing-mock.modern.js +2 -0
  173. package/node_modules/nothing-mock/dist/nothing-mock.modern.js.map +1 -0
  174. package/node_modules/nothing-mock/dist/nothing-mock.umd.js +2 -0
  175. package/node_modules/nothing-mock/dist/nothing-mock.umd.js.map +1 -0
  176. package/node_modules/nothing-mock/index.d.ts +6 -0
  177. package/node_modules/nothing-mock/package.json +29 -0
  178. package/node_modules/nothing-mock/src/index.js +15 -0
  179. package/node_modules/raw-body/HISTORY.md +308 -0
  180. package/node_modules/raw-body/LICENSE +22 -0
  181. package/node_modules/raw-body/README.md +223 -0
  182. package/node_modules/raw-body/SECURITY.md +24 -0
  183. package/node_modules/raw-body/index.d.ts +87 -0
  184. package/node_modules/raw-body/index.js +336 -0
  185. package/node_modules/raw-body/package.json +49 -0
  186. package/node_modules/safer-buffer/LICENSE +21 -0
  187. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  188. package/node_modules/safer-buffer/Readme.md +156 -0
  189. package/node_modules/safer-buffer/dangerous.js +58 -0
  190. package/node_modules/safer-buffer/package.json +34 -0
  191. package/node_modules/safer-buffer/safer.js +77 -0
  192. package/node_modules/safer-buffer/tests.js +406 -0
  193. package/node_modules/setprototypeof/LICENSE +13 -0
  194. package/node_modules/setprototypeof/README.md +31 -0
  195. package/node_modules/setprototypeof/index.d.ts +2 -0
  196. package/node_modules/setprototypeof/index.js +17 -0
  197. package/node_modules/setprototypeof/package.json +38 -0
  198. package/node_modules/setprototypeof/test/index.js +24 -0
  199. package/node_modules/statuses/HISTORY.md +82 -0
  200. package/node_modules/statuses/LICENSE +23 -0
  201. package/node_modules/statuses/README.md +136 -0
  202. package/node_modules/statuses/codes.json +65 -0
  203. package/node_modules/statuses/index.js +146 -0
  204. package/node_modules/statuses/package.json +49 -0
  205. package/node_modules/toidentifier/HISTORY.md +9 -0
  206. package/node_modules/toidentifier/LICENSE +21 -0
  207. package/node_modules/toidentifier/README.md +61 -0
  208. package/node_modules/toidentifier/index.js +32 -0
  209. package/node_modules/toidentifier/package.json +38 -0
  210. package/node_modules/unpipe/HISTORY.md +4 -0
  211. package/node_modules/unpipe/LICENSE +22 -0
  212. package/node_modules/unpipe/README.md +43 -0
  213. package/node_modules/unpipe/index.js +69 -0
  214. package/node_modules/unpipe/package.json +27 -0
  215. package/package.json +127 -0
@@ -0,0 +1,481 @@
1
+ "use strict";
2
+ /* eslint-disable no-use-before-define */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.uppercase = exports.unsnakecase = exports.snakecase = exports.undashcase = exports.dashcase = exports.zencase = exports.replaceSpaces = exports.freeze = exports.isHTML = exports.objectToSortedString = exports.compareEntryKeys = exports.compareString = exports.compareNumber = exports.stringEmpty = exports.stringNotEmpty = exports.stringEmptyOnly = exports.stringNotEmptyOnly = exports.cleanObject = exports.objectContainsAnyValue = exports.nullable = exports.objectNotEmpty = exports.objectEmpty = exports.ensureObject = exports.findLastMatch = exports.arrayNotEmpty = exports.arrayEmpty = exports.ensureArraySet = exports.ensureArray = exports.ensureNumericConstrained = exports.ensureNumericNegatable = exports.ensureNumericOnly = exports.ensureNumeric = exports.isNumericNegatable = exports.isNumericOnly = exports.ensureAlphaNumeric = exports.ensureStringClean = exports.ensureStringAscii = exports.ensureStringOnly = exports.ensureString = exports.safeParse = exports.safeTrim = exports.isTypeEnhanced = exports.isType = exports.isSet = exports.isArray = exports.arrayRandomItem = exports.arrayRandom = exports.nextRandom = exports.random = exports.normalizeShopifyId = void 0;
5
+ exports.appendQuery = exports.arraysMatch = exports.arrayIncludesAll = exports.querystringToObject = exports.parseProject = exports.parseProjectName = exports.parseKeywordGroups = exports.parseKeywords = exports.isTrue = exports.arrayToObject = exports.normalizeArray = exports.combineCommas = exports.splitCommas = exports.wrappedEncode = exports.ensureExtension = exports.ensureTrailingSlash = exports.ensureLeadingSlash = exports.removeLeadingTrailingSlash = exports.removeTrailingSlash = exports.removeLeadingTrailingQuotes = exports.removeLeadingSlash = exports.titleCase = exports.camelCase = exports.capitalize = exports.slugify = exports.lowercase = void 0;
6
+ // #region lib-core
7
+ // TODO!!!: keep in sync between verifyd and lib-core (and lib-utils-js at bottom)
8
+ const normalizeShopifyId = (shopifyData) => {
9
+ var _a, _b;
10
+ const isString = (0, exports.isType)(shopifyData, 'string');
11
+ if (isString && !shopifyData.startsWith('gid:')) {
12
+ if (!(0, exports.isNumericOnly)(shopifyData)) {
13
+ return {};
14
+ }
15
+ return {
16
+ id: `${shopifyData}`,
17
+ };
18
+ }
19
+ const { id: _entityId, legacyResourceId } = isString
20
+ ? { id: shopifyData }
21
+ : (0, exports.ensureObject)(shopifyData);
22
+ if ((0, exports.stringEmpty)(_entityId) && (0, exports.stringEmpty)(legacyResourceId)) {
23
+ return {};
24
+ }
25
+ const entity_id = (0, exports.ensureString)(_entityId);
26
+ const { entity_type, parsedId } = (_b = (_a = entity_id.match(/^gid:\/\/shopify\/(?<entity_type>.*)\/(?<parsedId>[0-9]+).*$/)) === null || _a === void 0 ? void 0 : _a.groups) !== null && _b !== void 0 ? _b : {};
27
+ const id = (0, exports.ensureString)(parsedId || legacyResourceId);
28
+ const hasEntityId = (0, exports.stringNotEmpty)(entity_id);
29
+ const hasEntityType = (0, exports.stringNotEmpty)(entity_type);
30
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, exports.stringNotEmpty)(id) && { id }), hasEntityId && { entity_id }), hasEntityType && { entity_type }), (hasEntityId && hasEntityType) && {
31
+ gid: `gid://shopify/${entity_type}/${entity_id}`,
32
+ });
33
+ };
34
+ exports.normalizeShopifyId = normalizeShopifyId;
35
+ const random = (max = 100, min = 1) => {
36
+ const floor = Math.min(max, min);
37
+ return Math.floor(Math.random() * (max - floor + 1)) + floor;
38
+ };
39
+ exports.random = random;
40
+ const nextRandom = (max = 100, min = 1) => {
41
+ const maximum = Math.max(max, 0);
42
+ const minimum = Math.max(min, 0);
43
+ let randomNumber = maximum;
44
+ if (maximum > minimum) {
45
+ do {
46
+ randomNumber = (0, exports.random)(maximum, minimum);
47
+ } while (randomNumber === exports.nextRandom.last);
48
+ exports.nextRandom.last = randomNumber;
49
+ }
50
+ return randomNumber;
51
+ };
52
+ exports.nextRandom = nextRandom;
53
+ const arrayRandom = (_values, _max = 1) => {
54
+ const values = (0, exports.ensureArray)(_values);
55
+ const valuesLength = values.length;
56
+ const maxLength = Math.min(_max, valuesLength);
57
+ if (valuesLength <= maxLength) {
58
+ return values;
59
+ }
60
+ const arrayLength = valuesLength - 1;
61
+ const randomValues = [];
62
+ do {
63
+ const newVal = values[(0, exports.nextRandom)(arrayLength, 0)];
64
+ if (!randomValues.includes(newVal)) {
65
+ randomValues.push(newVal);
66
+ }
67
+ } while (randomValues.length < maxLength);
68
+ return randomValues;
69
+ };
70
+ exports.arrayRandom = arrayRandom;
71
+ const arrayRandomItem = (_values) => ((0, exports.arrayRandom)(_values)[0]);
72
+ exports.arrayRandomItem = arrayRandomItem;
73
+ const isArray = (value) => (
74
+ // eslint-disable-next-line eqeqeq
75
+ (value != undefined) && Array.isArray(value));
76
+ exports.isArray = isArray;
77
+ const isSet = (value) => (
78
+ // eslint-disable-next-line eqeqeq
79
+ (value != undefined) && (value instanceof Set));
80
+ exports.isSet = isSet;
81
+ const isType = (value, type) => (
82
+ // eslint-disable-next-line eqeqeq, valid-typeof
83
+ (value != undefined) && (typeof value === type));
84
+ exports.isType = isType;
85
+ const isTypeEnhanced = (value, type) => {
86
+ switch (true) {
87
+ case (type === 'set'): {
88
+ return (0, exports.isSet)(value);
89
+ }
90
+ case (type === 'array'): {
91
+ return ((0, exports.isArray)(value) &&
92
+ !(0, exports.isSet)(value));
93
+ }
94
+ case (type === 'object'): {
95
+ return ((0, exports.isType)(value, type) &&
96
+ !(0, exports.isArray)(value));
97
+ }
98
+ default: {
99
+ return (0, exports.isType)(value, type);
100
+ }
101
+ }
102
+ };
103
+ exports.isTypeEnhanced = isTypeEnhanced;
104
+ const safeTrim = (value) => {
105
+ if ((0, exports.isType)(value, 'string')) {
106
+ // eslint-disable-next-line no-param-reassign
107
+ value = value.trim();
108
+ }
109
+ return value;
110
+ };
111
+ exports.safeTrim = safeTrim;
112
+ const safeParse = (value, trim) => {
113
+ if ((0, exports.isType)(value, 'string')) {
114
+ if (trim) {
115
+ // eslint-disable-next-line no-param-reassign
116
+ value = (0, exports.safeTrim)(value);
117
+ }
118
+ if (value.startsWith('{') || value.startsWith('[') || value.startsWith('"')) {
119
+ // eslint-disable-next-line no-param-reassign
120
+ value = JSON.parse(value);
121
+ }
122
+ }
123
+ // TODO: should this be value ?? {}
124
+ return value;
125
+ };
126
+ exports.safeParse = safeParse;
127
+ const ensureString = (string) => (string ? `${string}` : '');
128
+ exports.ensureString = ensureString;
129
+ // HMMM: what if 'string' is an object?
130
+ const ensureStringOnly = (string) => (
131
+ // eslint-disable-next-line eqeqeq
132
+ (string != undefined) ? `${string}` : '');
133
+ exports.ensureStringOnly = ensureStringOnly;
134
+ const ensureStringAscii = (string) => (
135
+ // eslint-disable-next-line no-control-regex
136
+ (0, exports.ensureStringOnly)(string).replace(/[^\x00-\x7F]/g, ''));
137
+ exports.ensureStringAscii = ensureStringAscii;
138
+ const ensureStringClean = (string) => (
139
+ // eslint-disable-next-line no-control-regex
140
+ (0, exports.ensureStringOnly)(string).replace(/[^a-z0-9_-]/gi, ''));
141
+ exports.ensureStringClean = ensureStringClean;
142
+ const ensureAlphaNumeric = (string) => (
143
+ // eslint-disable-next-line no-control-regex
144
+ (0, exports.ensureStringOnly)(string).replace(/[^a-z0-9]/gi, ''));
145
+ exports.ensureAlphaNumeric = ensureAlphaNumeric;
146
+ const isNumericOnly = (value) => {
147
+ var _a;
148
+ const [matched] = (_a = `${value}`.match(/^([0-9]+)$/)) !== null && _a !== void 0 ? _a : [];
149
+ // eslint-disable-next-line eqeqeq
150
+ return (matched != undefined);
151
+ };
152
+ exports.isNumericOnly = isNumericOnly;
153
+ const isNumericNegatable = (value) => {
154
+ var _a;
155
+ const [matched] = (_a = `${value}`.match(/^(-?[0-9]+(\.[0-9]+)?)?$/)) !== null && _a !== void 0 ? _a : [];
156
+ // eslint-disable-next-line eqeqeq
157
+ return (matched != undefined);
158
+ };
159
+ exports.isNumericNegatable = isNumericNegatable;
160
+ // TODO: explore places using ensureNumeric to move to isNumericNegatable
161
+ const ensureNumeric = (string) => (Number((0, exports.ensureString)(string).replace(/[^0-9.]/gi, '')));
162
+ exports.ensureNumeric = ensureNumeric;
163
+ const ensureNumericOnly = (string) => (Number((0, exports.ensureString)(string).replace(/[^0-9]/gi, '')));
164
+ exports.ensureNumericOnly = ensureNumericOnly;
165
+ // TODO: update regex to handle negative number returns negative. Something like (?!\d\.)(-?\d+(\.\d)?)
166
+ const ensureNumericNegatable = (string) => (Number((0, exports.ensureString)(string).replace(/[^0-9.-]/gi, '')));
167
+ exports.ensureNumericNegatable = ensureNumericNegatable;
168
+ const ensureNumericConstrained = (value, { min: _min = 0, max: _max = 100 } = {}) => {
169
+ const min = (0, exports.ensureNumericNegatable)(_min);
170
+ const max = (0, exports.ensureNumericNegatable)(_max);
171
+ return Math.max(min, Math.min((0, exports.ensureNumeric)(value), max));
172
+ };
173
+ exports.ensureNumericConstrained = ensureNumericConstrained;
174
+ const ensureArray = (array = []) => (
175
+ // eslint-disable-next-line no-nested-ternary
176
+ !array ? [] : Array.isArray(array) ? array : [array]);
177
+ exports.ensureArray = ensureArray;
178
+ const ensureArraySet = (arrayOrSet) => ((0, exports.ensureArray)((0, exports.isSet)(arrayOrSet) ? [...arrayOrSet] : arrayOrSet));
179
+ exports.ensureArraySet = ensureArraySet;
180
+ const arrayEmpty = (array, disableEmptyString = false) => (
181
+ // eslint-disable-next-line eqeqeq
182
+ !array || !array.length || (array.length === 1 && (array[0] == undefined || (disableEmptyString && (0, exports.stringEmpty)(array[0])))));
183
+ exports.arrayEmpty = arrayEmpty;
184
+ const arrayNotEmpty = (array, disableEmptyString = false) => (
185
+ // eslint-disable-next-line eqeqeq
186
+ !(0, exports.arrayEmpty)(array) && array[0] != undefined && (!disableEmptyString || (0, exports.stringNotEmpty)(array[0])));
187
+ exports.arrayNotEmpty = arrayNotEmpty;
188
+ const findLastMatch = (array, filterCallback = (value) => (value)) => ((0, exports.ensureArray)(array).filter(filterCallback).slice(-1)[0]);
189
+ exports.findLastMatch = findLastMatch;
190
+ const ensureObject = (object) => (object !== null && object !== void 0 ? object : {});
191
+ exports.ensureObject = ensureObject;
192
+ // NOTE: this does not ensure !isType(string)
193
+ const objectEmpty = (object) => (!object || !Object.keys(object).length);
194
+ exports.objectEmpty = objectEmpty;
195
+ const objectNotEmpty = (object) => (!(0, exports.objectEmpty)(object));
196
+ exports.objectNotEmpty = objectNotEmpty;
197
+ const nullable = (object) => ((!object || (object === 'null') || (object === undefined) || (object === null))
198
+ ? null // TODO: explore undefined here??
199
+ : object);
200
+ exports.nullable = nullable;
201
+ const objectContainsAnyValue = (object) => (Object.values((0, exports.ensureObject)(object)).some((value) => (0, exports.nullable)(value)));
202
+ exports.objectContainsAnyValue = objectContainsAnyValue;
203
+ const isUndefined = (value) => (
204
+ // eslint-disable-next-line eqeqeq
205
+ value == undefined);
206
+ const cleanObject = (object, allowEmptyLeafs, isEmptyCallback) => (Object.entries((0, exports.ensureObject)(object)).reduce((_cleanedObject, [key, _value]) => {
207
+ var _a;
208
+ if (!allowEmptyLeafs && ((_a = isEmptyCallback === null || isEmptyCallback === void 0 ? void 0 : isEmptyCallback(_value)) !== null && _a !== void 0 ? _a : isUndefined(_value))) {
209
+ return _cleanedObject; // skip key if null or undefined
210
+ }
211
+ const value = !Array.isArray(_value)
212
+ ? cleanObjectValue(_value, allowEmptyLeafs, isEmptyCallback)
213
+ : _value.reduce((_data, __value) => ([
214
+ ..._data,
215
+ cleanObjectValue(__value, allowEmptyLeafs, isEmptyCallback)
216
+ ]), []);
217
+ return Object.assign(Object.assign({}, _cleanedObject), { [key]: value });
218
+ }, {}));
219
+ exports.cleanObject = cleanObject;
220
+ const cleanObjectValue = (value, allowEmptyLeafs, isEmptyCallback) => ((0, exports.isType)(value, 'object') ? (0, exports.cleanObject)(value, allowEmptyLeafs, isEmptyCallback) : value);
221
+ const stringNotEmptyOnly = (stringable) => {
222
+ const string = (0, exports.ensureStringOnly)(stringable);
223
+ return ((string.length > 0) && !['null', 'undefined'].includes(string));
224
+ };
225
+ exports.stringNotEmptyOnly = stringNotEmptyOnly;
226
+ const stringEmptyOnly = (stringable) => (!(0, exports.stringNotEmptyOnly)(stringable));
227
+ exports.stringEmptyOnly = stringEmptyOnly;
228
+ const stringNotEmpty = (stringable) => {
229
+ const string = (0, exports.ensureString)(stringable);
230
+ return ((string.length > 0) && !['null', 'undefined'].includes(string));
231
+ };
232
+ exports.stringNotEmpty = stringNotEmpty;
233
+ const stringEmpty = (stringable) => (!(0, exports.stringNotEmpty)(stringable));
234
+ exports.stringEmpty = stringEmpty;
235
+ const splitString = (splitting, index = splitting.length) => {
236
+ const string = (0, exports.ensureString)(splitting);
237
+ return [string.slice(0, index), string.slice(index)];
238
+ };
239
+ const compareNumber = (number1 = 0, number2 = 0) => (number1 - number2);
240
+ exports.compareNumber = compareNumber;
241
+ const compareString = (string1, string2) => {
242
+ if ((0, exports.stringEmpty)(string1)) {
243
+ return 1;
244
+ }
245
+ if ((0, exports.stringEmpty)(string2)) {
246
+ return -1;
247
+ }
248
+ return (0, exports.ensureString)(string1).localeCompare(string2);
249
+ };
250
+ exports.compareString = compareString;
251
+ const compareEntryKeys = ([string1], [string2]) => ((0, exports.compareString)(string1, string2));
252
+ exports.compareEntryKeys = compareEntryKeys;
253
+ const objectToSortedString = (object, separator = '') => (Object.entries((0, exports.ensureObject)(object))
254
+ .sort(exports.compareEntryKeys)
255
+ .map(([key, value]) => `${key}=${value}`)
256
+ .join(separator));
257
+ exports.objectToSortedString = objectToSortedString;
258
+ const isHTML = (string) => {
259
+ var _a, _b, _c;
260
+ return ((_c = (((_a = string === null || string === void 0 ? void 0 : string.startsWith) === null || _a === void 0 ? void 0 : _a.call(string, '<')) || ((_b = string === null || string === void 0 ? void 0 : string.startsWith) === null || _b === void 0 ? void 0 : _b.call(string, '\n<')))) !== null && _c !== void 0 ? _c : false);
261
+ };
262
+ exports.isHTML = isHTML;
263
+ const freeze = (logMessage, object, type = 'log') => {
264
+ console[type](logMessage, !object ? object : JSON.parse(JSON.stringify((0, exports.ensureObject)(object))));
265
+ };
266
+ exports.freeze = freeze;
267
+ const replaceSpaces = (string, replacement = '') => (!(0, exports.isType)(string, 'string')
268
+ ? ''
269
+ : string.replace(/\s/g, replacement));
270
+ exports.replaceSpaces = replaceSpaces;
271
+ const recase = (string, replacement = '') => (!(0, exports.isType)(string, 'string')
272
+ ? ''
273
+ : string
274
+ .replace(/[^a-zA-Z0-9]+/g, replacement)
275
+ .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')
276
+ .replace(/([a-z])([A-Z])/g, '$1-$2')
277
+ .replace(/([0-9])([^0-9])/g, '$1-$2')
278
+ .replace(/([^0-9])([0-9])/g, '$1-$2')
279
+ .replace(/[-_]+/g, replacement)
280
+ .replace(new RegExp(`${replacement}$`), '')
281
+ .toLowerCase());
282
+ const zencase = (string, replacement = '-') => (!(0, exports.isType)(string, 'string')
283
+ ? ''
284
+ : (0, exports.replaceSpaces)(string, replacement)
285
+ .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')
286
+ .replace(/([a-z])([A-Z])/g, '$1-$2')
287
+ .replace(new RegExp(`${replacement}$`), '')
288
+ .toLowerCase());
289
+ exports.zencase = zencase;
290
+ const dashcase = (string) => (recase(string, '-'));
291
+ exports.dashcase = dashcase;
292
+ const undashcase = (string, replacement = ' ') => ((0, exports.ensureString)(string).replace(/-/g, replacement).trim());
293
+ exports.undashcase = undashcase;
294
+ const snakecase = (string) => (recase(string, '_'));
295
+ exports.snakecase = snakecase;
296
+ const unsnakecase = (string, replacement = ' ') => ((0, exports.ensureString)(string).replace(/_/g, replacement).trim());
297
+ exports.unsnakecase = unsnakecase;
298
+ const uppercase = (string) => ((0, exports.ensureString)(string).toUpperCase());
299
+ exports.uppercase = uppercase;
300
+ const lowercase = (string, defaultValue = '') => (!(0, exports.stringNotEmpty)(string)
301
+ ? defaultValue
302
+ : (0, exports.ensureString)(string).toLowerCase());
303
+ exports.lowercase = lowercase;
304
+ const slugify = (string) => ((0, exports.lowercase)((0, exports.dashcase)(string)));
305
+ exports.slugify = slugify;
306
+ const capitalize = (string) => {
307
+ const parts = splitString(string, 1);
308
+ return `${(0, exports.uppercase)(parts[0])}${parts[1]}`;
309
+ };
310
+ exports.capitalize = capitalize;
311
+ const camelCase = (string) => ((0, exports.stringNotEmpty)(string)
312
+ ? (0, exports.unsnakecase)((0, exports.undashcase)(string)).replace(/\w\S*/g, (word, charIndex) => {
313
+ if (charIndex === 0) {
314
+ return (0, exports.lowercase)(word);
315
+ }
316
+ return `${(0, exports.uppercase)(word.charAt(0))}${(0, exports.lowercase)(word.substr(1))}`;
317
+ }).split(' ').join('')
318
+ : '');
319
+ exports.camelCase = camelCase;
320
+ const titleCase = (string, _overrides) => {
321
+ if (!(0, exports.stringNotEmpty)(string)) {
322
+ return '';
323
+ }
324
+ const overrides = Object.assign({ 'add-ons': 'Add-Ons', agnostack: 'agnoStack', ai: 'AI', b2b: 'B2B', b2c: 'B2C', cartcollab: 'CartCollab', 'cartcollab(sm)': 'CartCollab(SM)', chatgpt: 'ChatGPT', covid: 'COVID', covid19: 'COVID-19', 'covid-19': 'COVID-19', crm: 'CRM', elasticpath: 'Elastic Path', ecommerce: 'eCommerce', 'e-commerce': 'eCommerce', faqs: 'FAQs', gpt: 'GPT', 'smile.io': 'Smile.io', 'stamped.io': 'Stamped.io', 'judge.me': 'Judge.me', 'influence.io': 'Influence.io', keepsmallstrong: 'KeepSmallStrong', loyaltylion: 'LoyaltyLion', openai: 'OpenAI', paypal: 'PayPal', 'postscript.io': 'Postscript.io', recharge: 'ReCharge', 'stay.ai': 'Stay.ai', 'stay ai': 'Stay Ai', shipengine: 'ShipEngine', shipperhq: 'ShipperHQ', shipstation: 'ShipStation', taxjar: 'TaxJar', yotpo: 'YotPo' }, _overrides);
325
+ const stringParts = (0, exports.lowercase)(string)
326
+ .split(' ')
327
+ .reduce((_stringParts, _stringPart) => {
328
+ var _a;
329
+ const stringPart = (_a = overrides[_stringPart]) !== null && _a !== void 0 ? _a : _stringPart
330
+ .replace(/([A-Z]+)/g, ' $1')
331
+ .replace(/\s\s+/g, ' ')
332
+ .replace(/(\b[a-z](?!\s)*)/g, (firstChar) => (0, exports.uppercase)(firstChar));
333
+ return [
334
+ ..._stringParts,
335
+ ...(0, exports.stringNotEmpty)(stringPart) ? [stringPart] : []
336
+ ];
337
+ }, []);
338
+ return stringParts.join(' ');
339
+ };
340
+ exports.titleCase = titleCase;
341
+ const removeLeadingSlash = (string) => ((0, exports.ensureString)(string).replace(/^\//, ''));
342
+ exports.removeLeadingSlash = removeLeadingSlash;
343
+ const removeLeadingTrailingQuotes = (string) => ((0, exports.ensureString)(string).replace(/^"|"$/g, ''));
344
+ exports.removeLeadingTrailingQuotes = removeLeadingTrailingQuotes;
345
+ // TODO: not sure if this should remove multipel at end or just one (as it does now)?
346
+ const removeTrailingSlash = (string) => ((0, exports.ensureString)(string).replace(/\/$/, ''));
347
+ exports.removeTrailingSlash = removeTrailingSlash;
348
+ const removeLeadingTrailingSlash = (string) => ((0, exports.removeTrailingSlash)((0, exports.removeLeadingSlash)(string)));
349
+ exports.removeLeadingTrailingSlash = removeLeadingTrailingSlash;
350
+ const ensureLeadingSlash = (string) => (`/${(0, exports.removeLeadingSlash)(string)}`);
351
+ exports.ensureLeadingSlash = ensureLeadingSlash;
352
+ const ensureTrailingSlash = (string) => (`${(0, exports.removeTrailingSlash)(string)}/`);
353
+ exports.ensureTrailingSlash = ensureTrailingSlash;
354
+ const ensureExtension = (string, extension) => {
355
+ var _a, _b;
356
+ if ((0, exports.stringEmpty)(extension)) {
357
+ return string;
358
+ }
359
+ const filePath = (_b = (_a = string.match(/(.*)\..+$/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : string;
360
+ return `${filePath}.${extension}`;
361
+ };
362
+ exports.ensureExtension = ensureExtension;
363
+ const wrappedEncode = (basePath, _wrappingPath) => {
364
+ const wrappingPath = (0, exports.ensureString)(_wrappingPath);
365
+ if ((0, exports.stringEmpty)(basePath)) {
366
+ return wrappingPath;
367
+ }
368
+ return `${basePath}${encodeURIComponent(wrappingPath)}`;
369
+ };
370
+ exports.wrappedEncode = wrappedEncode;
371
+ const splitCommas = (value) => ((0, exports.ensureString)(value)
372
+ .replace(/, /g, ',')
373
+ .split(',')
374
+ .reduce((_values, _value) => {
375
+ const __value = (0, exports.safeTrim)(_value);
376
+ return [
377
+ ..._values,
378
+ ...(0, exports.stringNotEmpty)(__value) ? [__value] : [] // TODO: explore stringEmptyOnly?
379
+ ];
380
+ }, []));
381
+ exports.splitCommas = splitCommas;
382
+ const combineCommas = (values) => ([...new Set((0, exports.ensureArray)(values).reduce((_combined, value) => ([
383
+ ..._combined,
384
+ ...(0, exports.splitCommas)(value)
385
+ ]), []))]);
386
+ exports.combineCommas = combineCommas;
387
+ const normalizeArray = (input, separator = ' ') => {
388
+ const inputArray = (0, exports.ensureArray)(input);
389
+ return inputArray.reduce((normalized, _ignore, index) => ([
390
+ ...normalized,
391
+ inputArray.slice(0, index + 1).join(separator)
392
+ ]), []).reverse();
393
+ };
394
+ exports.normalizeArray = normalizeArray;
395
+ const arrayToObject = (arrayable, key) => ((0, exports.ensureArray)(arrayable).reduce((_object, item) => (Object.assign(Object.assign({}, _object), { [item === null || item === void 0 ? void 0 : item[key]]: item })), {}));
396
+ exports.arrayToObject = arrayToObject;
397
+ const isTrue = (value, falsy) => {
398
+ const string = (0, exports.ensureString)(value);
399
+ return ![...(0, exports.ensureArray)(falsy), '', 'false'].includes(string);
400
+ };
401
+ exports.isTrue = isTrue;
402
+ // TODO: move all uses of parseKeywords to parseKeywordGroups
403
+ const parseKeywords = (keywordGroup, previous) => ([...new Set((0, exports.ensureArray)(keywordGroup).reduce((_parsedKeywords, keyword) => {
404
+ const keywords = (0, exports.splitCommas)(keyword);
405
+ return [
406
+ ..._parsedKeywords,
407
+ ...keywords.filter((_keyword) => (0, exports.stringNotEmpty)(_keyword))
408
+ ];
409
+ }, (0, exports.ensureArray)(previous)))].join(', '));
410
+ exports.parseKeywords = parseKeywords;
411
+ const parseKeywordGroups = (keywordGroups) => {
412
+ const parsedKeywords = (0, exports.ensureArray)(keywordGroups).reduce((_parsedKeywords, keywordGroup) => ([
413
+ ..._parsedKeywords,
414
+ ...(0, exports.ensureArray)(keywordGroup).reduce((_parsedGroupKeywords, keyword) => {
415
+ const keywords = (0, exports.splitCommas)(keyword);
416
+ return [
417
+ ..._parsedGroupKeywords,
418
+ ...keywords.filter((_keyword) => (0, exports.stringNotEmpty)(_keyword))
419
+ ];
420
+ }, [])
421
+ ]), []);
422
+ return [...new Set(parsedKeywords)].join(', ');
423
+ };
424
+ exports.parseKeywordGroups = parseKeywordGroups;
425
+ const parseProjectName = (_name) => {
426
+ var _a;
427
+ const name = (0, exports.ensureString)(_name);
428
+ const [, organization, ...parts] = (_a = /(@.*)([\\]+|\/)+(.*)/.exec(name)) !== null && _a !== void 0 ? _a : [];
429
+ const projectName = organization ? name.replace(organization, '').replace('/', '') : name;
430
+ return {
431
+ name,
432
+ parts,
433
+ organization,
434
+ projectName,
435
+ };
436
+ };
437
+ exports.parseProjectName = parseProjectName;
438
+ const parseProject = (packageInfo) => {
439
+ const { shortName, owner: _appOwner, name: _name, appName: _appName, keywords, siteName: _siteName } = packageInfo !== null && packageInfo !== void 0 ? packageInfo : {};
440
+ const { name, organization, projectName } = (0, exports.parseProjectName)(_name);
441
+ const appName = _appName !== null && _appName !== void 0 ? _appName : projectName === null || projectName === void 0 ? void 0 : projectName.slice((projectName === null || projectName === void 0 ? void 0 : projectName.indexOf('-')) + 1);
442
+ const siteName = _siteName !== null && _siteName !== void 0 ? _siteName : projectName === null || projectName === void 0 ? void 0 : projectName.slice((projectName === null || projectName === void 0 ? void 0 : projectName.indexOf('-')) + 1);
443
+ const companyName = (0, exports.titleCase)(organization === null || organization === void 0 ? void 0 : organization.replace('@', ''));
444
+ const appOwner = _appOwner !== null && _appOwner !== void 0 ? _appOwner : companyName;
445
+ return [{
446
+ keywords,
447
+ appOwner,
448
+ appName,
449
+ siteName,
450
+ shortName,
451
+ companyName,
452
+ projectName,
453
+ }, organization, name];
454
+ };
455
+ exports.parseProject = parseProject;
456
+ // #endregion lib-core
457
+ // #region lib-utils-js
458
+ const querystringToObject = (queryString) => {
459
+ if ((0, exports.stringEmpty)(queryString)) {
460
+ return {};
461
+ }
462
+ const urlParams = new URLSearchParams(queryString);
463
+ return Object.fromEntries(urlParams);
464
+ };
465
+ exports.querystringToObject = querystringToObject;
466
+ const arrayIncludesAll = (_values, comparison) => {
467
+ const values = (0, exports.ensureArray)(_values);
468
+ return (0, exports.ensureArray)(comparison).every((value) => ((0, exports.stringNotEmpty)(value) && values.includes(value)));
469
+ };
470
+ exports.arrayIncludesAll = arrayIncludesAll;
471
+ const arraysMatch = (array1, array2) => ((0, exports.arrayIncludesAll)(array1, array2) && (0, exports.arrayIncludesAll)(array2, array1));
472
+ exports.arraysMatch = arraysMatch;
473
+ const appendQuery = (_basePath, queryString) => {
474
+ const basePath = (0, exports.ensureString)(_basePath);
475
+ if ((0, exports.stringEmpty)(queryString)) {
476
+ return basePath;
477
+ }
478
+ return `${basePath}${basePath.includes('?') ? '&' : '?'}${queryString}`;
479
+ };
480
+ exports.appendQuery = appendQuery;
481
+ //# sourceMappingURL=display.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display.js","sourceRoot":"","sources":["../../src/shared/display.js"],"names":[],"mappings":";AAAA,yCAAyC;;;;AAEzC,mBAAmB;AACnB,kFAAkF;AAC3E,MAAM,kBAAkB,GAAG,CAAC,WAAW,EAAE,EAAE;;IAChD,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAC,WAAW,EAAE,QAAQ,CAAC,CAAA;IAC9C,IAAI,QAAQ,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QAC/C,IAAI,CAAC,IAAA,qBAAa,EAAC,WAAW,CAAC,EAAE;YAC/B,OAAO,EAAE,CAAA;SACV;QAED,OAAO;YACL,EAAE,EAAE,GAAG,WAAW,EAAE;SACrB,CAAA;KACF;IAED,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,QAAQ;QAClD,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE;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,KAAK,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAChD,CAAC,CAAA;AACJ,CAAC,CAAA;AALY,QAAA,gBAAgB,oBAK5B;AAEM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,CAC7C,IAAA,wBAAgB,EAAC,MAAM,EAAE,MAAM,CAAC,IAAI,IAAA,wBAAgB,EAAC,MAAM,EAAE,MAAM,CAAC,CACrE,CAAA;AAFY,QAAA,WAAW,eAEvB;AAEM,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,EAAE;IACpD,MAAM,QAAQ,GAAG,IAAA,oBAAY,EAAC,SAAS,CAAC,CAAA;IACxC,IAAI,IAAA,mBAAW,EAAC,WAAW,CAAC,EAAE;QAC5B,OAAO,QAAQ,CAAA;KAChB;IACD,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,WAAW,EAAE,CAAA;AACzE,CAAC,CAAA;AANY,QAAA,WAAW,eAMvB"}
@@ -0,0 +1,6 @@
1
+ export * from './datetime';
2
+ export * from './display';
3
+ export * from './request';
4
+ export * from './verification';
5
+ export { default as WebCrypto } from './WebCrypto';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.WebCrypto = void 0;
21
+ // export * from './constants'
22
+ __exportStar(require("./datetime"), exports);
23
+ __exportStar(require("./display"), exports);
24
+ __exportStar(require("./request"), exports);
25
+ __exportStar(require("./verification"), exports);
26
+ var WebCrypto_1 = require("./WebCrypto");
27
+ Object.defineProperty(exports, "WebCrypto", { enumerable: true, get: function () { return __importDefault(WebCrypto_1).default; } });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,6CAA0B;AAC1B,4CAAyB;AACzB,4CAAyB;AACzB,iDAA8B;AAC9B,yCAAkD;AAAzC,uHAAA,OAAO,OAAa"}
@@ -0,0 +1,16 @@
1
+ export const HEADER_CONTENT_TYPE: "Content-Type";
2
+ export namespace CONTENT_TYPES {
3
+ const APPLICATION_JSON: string;
4
+ }
5
+ export function getRequestMethod(body: any, _method: any): string;
6
+ export function prepareRequestOptions({ method: _method, body: _body, headers: _header, ...requestOptions }?: {
7
+ method: any;
8
+ body: any;
9
+ headers: any;
10
+ }): any;
11
+ export function normalizeURIParts(uri: any): {
12
+ pathname: string;
13
+ search: string;
14
+ origin?: string | undefined;
15
+ } | undefined;
16
+ //# sourceMappingURL=request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/shared/request.js"],"names":[],"mappings":"AAUA,iDAAiD;;;;AAK1C,kEAIN;AAEM;;;;QAmBN;AAgBM;;;;cAeN"}