@lustre/sdk 1.5.2-dev.8 → 1.5.2-dev.9

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 (324) hide show
  1. package/dist/Context.js +5 -5
  2. package/dist/Provider.js +13 -13
  3. package/dist/actions.js +2 -2
  4. package/dist/api/QueryError.js +54 -54
  5. package/dist/api/QueryResolver.js +103 -103
  6. package/dist/api/WrappedQuery.js +2 -2
  7. package/dist/api/fast1a64utf.js +134 -134
  8. package/dist/api/fetchEntity.js +41 -41
  9. package/dist/api/fetchQuery.js +31 -31
  10. package/dist/api/getHash.js +26 -26
  11. package/dist/api/getQueryHash.js +9 -9
  12. package/dist/hooks/index.js +17 -17
  13. package/dist/hooks/useApiDispatch.js +9 -9
  14. package/dist/hooks/useApiSelector.js +9 -9
  15. package/dist/hooks/useApiStore.js +9 -9
  16. package/dist/hooks/useEntities.js +40 -40
  17. package/dist/hooks/useEntity.js +9 -9
  18. package/dist/hooks/useQueries.js +54 -54
  19. package/dist/hooks/useQuery.js +9 -9
  20. package/dist/index.js +49 -49
  21. package/dist/schema/builtins.js +433 -433
  22. package/dist/schema/entities/alias.js +2 -2
  23. package/dist/schema/entities/brand.js +2 -2
  24. package/dist/schema/entities/category.js +2 -2
  25. package/dist/schema/entities/crawl.js +2 -2
  26. package/dist/schema/entities/index.js +29 -29
  27. package/dist/schema/entities/media.js +2 -2
  28. package/dist/schema/entities/offer.js +2 -2
  29. package/dist/schema/entities/productConfiguration.js +2 -2
  30. package/dist/schema/entities/productFamily.js +2 -2
  31. package/dist/schema/entities/productGeneration.js +2 -2
  32. package/dist/schema/entities/productType.js +2 -2
  33. package/dist/schema/entities/rating.js +2 -2
  34. package/dist/schema/entities/source.js +2 -2
  35. package/dist/schema/entities/spec.js +2 -2
  36. package/dist/schema/entities/specType.js +2 -2
  37. package/dist/schema/entities/specTypeChoice.js +2 -2
  38. package/dist/schema/entities/storePage.js +2 -2
  39. package/dist/schema/entities/storePageQueueGroup.js +2 -2
  40. package/dist/schema/entities/user.js +2 -2
  41. package/dist/schema/index.js +29 -29
  42. package/dist/schema/mutations/createBrand.js +2 -2
  43. package/dist/schema/mutations/createCategory.js +2 -2
  44. package/dist/schema/mutations/createProductConfiguration.js +2 -2
  45. package/dist/schema/mutations/createProductFamily.js +2 -2
  46. package/dist/schema/mutations/createProductGeneration.js +2 -2
  47. package/dist/schema/mutations/createProductType.js +2 -2
  48. package/dist/schema/mutations/createUser.js +2 -2
  49. package/dist/schema/mutations/storePageQueueClaimById.js +2 -2
  50. package/dist/schema/mutations/storePageQueueClaimNext.js +2 -2
  51. package/dist/schema/mutations/storePageQueueHandle.js +2 -2
  52. package/dist/schema/mutations/storePageQueueHandleStorePageIdSet.js +2 -2
  53. package/dist/schema/mutations/updateAlias.js +2 -2
  54. package/dist/schema/mutations/updateBrand.js +2 -2
  55. package/dist/schema/mutations/updateCategory.js +2 -2
  56. package/dist/schema/mutations/updateOffer.js +2 -2
  57. package/dist/schema/mutations/updateProductConfiguration.js +2 -2
  58. package/dist/schema/mutations/updateProductConfigurationProductType.js +2 -2
  59. package/dist/schema/mutations/updateProductFamily.js +2 -2
  60. package/dist/schema/mutations/updateProductFamilyBrand.js +2 -2
  61. package/dist/schema/mutations/updateProductGeneration.js +2 -2
  62. package/dist/schema/mutations/updateProductGenerationProductFamily.js +2 -2
  63. package/dist/schema/mutations/updateProductType.js +2 -2
  64. package/dist/schema/mutations/updateProductTypeProductGeneration.js +2 -2
  65. package/dist/schema/mutations/updateSource.js +2 -2
  66. package/dist/schema/mutations/updateStorePage.js +2 -2
  67. package/dist/schema/queries/affiliateUrl.js +2 -2
  68. package/dist/schema/queries/aliasIdListBySomeId.js +2 -2
  69. package/dist/schema/queries/analyticsTrack.js +2 -2
  70. package/dist/schema/queries/appliedCategoryIdListBySomeId.js +2 -2
  71. package/dist/schema/queries/baseScore.js +2 -2
  72. package/dist/schema/queries/baseScoreRatingIdList.js +2 -2
  73. package/dist/schema/queries/baseScoresByCategoryId.js +2 -2
  74. package/dist/schema/queries/bestInClass.js +2 -2
  75. package/dist/schema/queries/brandAliasResolution.js +2 -2
  76. package/dist/schema/queries/brandCategoryRankings.js +2 -2
  77. package/dist/schema/queries/brandIdBySomeId.js +2 -2
  78. package/dist/schema/queries/brandIdList.js +2 -2
  79. package/dist/schema/queries/brandIdListBySearch.js +2 -2
  80. package/dist/schema/queries/brandSocialMediaPostList.js +2 -2
  81. package/dist/schema/queries/categoryAliasResolution.js +2 -2
  82. package/dist/schema/queries/categoryDisplayMode.js +2 -2
  83. package/dist/schema/queries/categoryIdByUrlSlug.js +2 -2
  84. package/dist/schema/queries/categoryIdList.js +2 -2
  85. package/dist/schema/queries/categoryIdListBySomeId.js +2 -2
  86. package/dist/schema/queries/categoryIdListBySourceId.js +2 -2
  87. package/dist/schema/queries/categoryModifierSearchList.js +2 -2
  88. package/dist/schema/queries/categoryRankings.js +2 -2
  89. package/dist/schema/queries/categorySearchList.js +2 -2
  90. package/dist/schema/queries/categoryStatusList.js +2 -2
  91. package/dist/schema/queries/crawlIdList.js +2 -2
  92. package/dist/schema/queries/crawlIdListByUrl.js +2 -2
  93. package/dist/schema/queries/descriptionMarkdown.js +2 -2
  94. package/dist/schema/queries/entityType.js +2 -2
  95. package/dist/schema/queries/fallbackPriceByProductTypeId.js +2 -2
  96. package/dist/schema/queries/inputLayerVersion.js +2 -2
  97. package/dist/schema/queries/latestRatingIdList.js +2 -2
  98. package/dist/schema/queries/latestRatingIdListBySomeId.js +2 -2
  99. package/dist/schema/queries/mediaIdListBySomeId.js +2 -2
  100. package/dist/schema/queries/mlCategoryDisplayMode.js +2 -2
  101. package/dist/schema/queries/noteMarkdown.js +2 -2
  102. package/dist/schema/queries/offerIdListByStorePageId.js +2 -2
  103. package/dist/schema/queries/possibleAliasIdListBySomeId.js +2 -2
  104. package/dist/schema/queries/possibleStorePageIdListBySomeId.js +2 -2
  105. package/dist/schema/queries/preferredCategoryIdListByProductId.js +2 -2
  106. package/dist/schema/queries/preferredLatestRatingIdListBySomeId.js +2 -2
  107. package/dist/schema/queries/preferredStorePageList.js +2 -2
  108. package/dist/schema/queries/priceHistoryLookup.js +2 -2
  109. package/dist/schema/queries/pricePointCompetitors.js +2 -2
  110. package/dist/schema/queries/priceRangeByCategoryId.js +2 -2
  111. package/dist/schema/queries/productConfigurationIdListBySomeId.js +2 -2
  112. package/dist/schema/queries/productDealList.js +2 -2
  113. package/dist/schema/queries/productDocumentByStoreUrl.js +2 -2
  114. package/dist/schema/queries/productDocumentsByProductIds.js +2 -2
  115. package/dist/schema/queries/productFamilyIdBySomeId.js +2 -2
  116. package/dist/schema/queries/productFamilyIdListBySomeId.js +2 -2
  117. package/dist/schema/queries/productGenerationIdBySomeId.js +2 -2
  118. package/dist/schema/queries/productGenerationIdListBySomeId.js +2 -2
  119. package/dist/schema/queries/productListSort.js +2 -2
  120. package/dist/schema/queries/productPricePointList.js +2 -2
  121. package/dist/schema/queries/productSearchList.js +2 -2
  122. package/dist/schema/queries/productTypeIdBySomeId.js +2 -2
  123. package/dist/schema/queries/productTypeIdByStoreUrl.js +2 -2
  124. package/dist/schema/queries/productTypeIdListByCategoryId.js +2 -2
  125. package/dist/schema/queries/productTypeIdListByModifiers.js +2 -2
  126. package/dist/schema/queries/productTypeIdListBySomeId.js +2 -2
  127. package/dist/schema/queries/saleMetrics.js +2 -2
  128. package/dist/schema/queries/searchSuggestionList.js +2 -2
  129. package/dist/schema/queries/sectionDataByCrawlId.js +2 -2
  130. package/dist/schema/queries/sourceIdList.js +2 -2
  131. package/dist/schema/queries/specIdListBySomeId.js +2 -2
  132. package/dist/schema/queries/specTypeIdList.js +2 -2
  133. package/dist/schema/queries/specTypeValidValues.js +2 -2
  134. package/dist/schema/queries/specValueRangeListByCategoryId.js +2 -2
  135. package/dist/schema/queries/stablePriceByProductId.js +2 -2
  136. package/dist/schema/queries/stablePriceByProductIdAndStoreName.js +2 -2
  137. package/dist/schema/queries/stablePriceByStorePageId.js +2 -2
  138. package/dist/schema/queries/storePageFetchData.js +2 -2
  139. package/dist/schema/queries/storePageIdByUrl.js +2 -2
  140. package/dist/schema/queries/storePageIdListBySomeId.js +2 -2
  141. package/dist/schema/queries/storePageInfoBySku.js +2 -2
  142. package/dist/schema/queries/storePageScrapeData.js +2 -2
  143. package/dist/schema/queries/subCategoryIdListByCategoryId.js +2 -2
  144. package/dist/schema/queries/subsetModifierDataByModifiers.js +2 -2
  145. package/dist/schema/queries/topProductDocumentList.js +2 -2
  146. package/dist/schema/queries/unstableMediaIdListByCategoryId.js +2 -2
  147. package/dist/schema/queries/unstableSourceTrust.js +2 -2
  148. package/dist/schema/queries/userIdList.js +2 -2
  149. package/dist/schema/queries/userPermissionsByUserId.js +2 -2
  150. package/dist/schema/queries/userRestictedData.js +2 -2
  151. package/dist/schema/queries/userReviewAnalysis.js +2 -2
  152. package/dist/schema/queries/whoAmI.js +2 -2
  153. package/dist/schema/queries.js +2 -2
  154. package/dist/schema/responses.js +2 -2
  155. package/dist/store/entities/index.js +25 -25
  156. package/dist/store/entities/makeEntityReducer.js +23 -23
  157. package/dist/store/errors/index.js +23 -23
  158. package/dist/store/errors/makeErrorReducer.js +23 -23
  159. package/dist/store/index.js +16 -16
  160. package/dist/store/responses/index.js +90 -90
  161. package/dist/store/responses/makeResponseReducer.js +23 -23
  162. package/package.json +1 -1
  163. package/types/Context.d.ts +4 -4
  164. package/types/Provider.d.ts +3 -3
  165. package/types/actions.d.ts +7 -7
  166. package/types/api/QueryError.d.ts +29 -29
  167. package/types/api/QueryResolver.d.ts +32 -32
  168. package/types/api/WrappedQuery.d.ts +8 -8
  169. package/types/api/fast1a64utf.d.ts +2 -2
  170. package/types/api/fetchEntity.d.ts +6 -6
  171. package/types/api/fetchQuery.d.ts +6 -6
  172. package/types/api/getHash.d.ts +6 -6
  173. package/types/api/getQueryHash.d.ts +2 -2
  174. package/types/hooks/index.d.ts +7 -7
  175. package/types/hooks/useApiDispatch.d.ts +3 -3
  176. package/types/hooks/useApiSelector.d.ts +4 -4
  177. package/types/hooks/useApiStore.d.ts +2 -2
  178. package/types/hooks/useEntities.d.ts +7 -7
  179. package/types/hooks/useEntity.d.ts +7 -7
  180. package/types/hooks/useQueries.d.ts +7 -7
  181. package/types/hooks/useQuery.d.ts +7 -7
  182. package/types/index.d.ts +11 -11
  183. package/types/schema/builtins.d.ts +123 -123
  184. package/types/schema/entities/alias.d.ts +5 -5
  185. package/types/schema/entities/brand.d.ts +4 -4
  186. package/types/schema/entities/category.d.ts +6 -6
  187. package/types/schema/entities/crawl.d.ts +11 -11
  188. package/types/schema/entities/index.d.ts +17 -17
  189. package/types/schema/entities/media.d.ts +5 -5
  190. package/types/schema/entities/offer.d.ts +10 -10
  191. package/types/schema/entities/productConfiguration.d.ts +4 -4
  192. package/types/schema/entities/productFamily.d.ts +4 -4
  193. package/types/schema/entities/productGeneration.d.ts +4 -4
  194. package/types/schema/entities/productType.d.ts +4 -4
  195. package/types/schema/entities/rating.d.ts +52 -52
  196. package/types/schema/entities/source.d.ts +7 -7
  197. package/types/schema/entities/spec.d.ts +21 -21
  198. package/types/schema/entities/specType.d.ts +5 -5
  199. package/types/schema/entities/specTypeChoice.d.ts +6 -6
  200. package/types/schema/entities/storePage.d.ts +7 -7
  201. package/types/schema/entities/storePageQueueGroup.d.ts +5 -5
  202. package/types/schema/entities/user.d.ts +4 -4
  203. package/types/schema/index.d.ts +257 -257
  204. package/types/schema/mutations/createBrand.d.ts +8 -8
  205. package/types/schema/mutations/createCategory.d.ts +8 -8
  206. package/types/schema/mutations/createProductConfiguration.d.ts +9 -9
  207. package/types/schema/mutations/createProductFamily.d.ts +9 -9
  208. package/types/schema/mutations/createProductGeneration.d.ts +9 -9
  209. package/types/schema/mutations/createProductType.d.ts +9 -9
  210. package/types/schema/mutations/createUser.d.ts +9 -9
  211. package/types/schema/mutations/storePageQueueClaimById.d.ts +16 -16
  212. package/types/schema/mutations/storePageQueueClaimNext.d.ts +14 -14
  213. package/types/schema/mutations/storePageQueueHandle.d.ts +14 -14
  214. package/types/schema/mutations/storePageQueueHandleStorePageIdSet.d.ts +14 -14
  215. package/types/schema/mutations/updateAlias.d.ts +7 -7
  216. package/types/schema/mutations/updateBrand.d.ts +7 -7
  217. package/types/schema/mutations/updateCategory.d.ts +9 -9
  218. package/types/schema/mutations/updateOffer.d.ts +7 -7
  219. package/types/schema/mutations/updateProductConfiguration.d.ts +7 -7
  220. package/types/schema/mutations/updateProductConfigurationProductType.d.ts +7 -7
  221. package/types/schema/mutations/updateProductFamily.d.ts +7 -7
  222. package/types/schema/mutations/updateProductFamilyBrand.d.ts +7 -7
  223. package/types/schema/mutations/updateProductGeneration.d.ts +7 -7
  224. package/types/schema/mutations/updateProductGenerationProductFamily.d.ts +7 -7
  225. package/types/schema/mutations/updateProductType.d.ts +7 -7
  226. package/types/schema/mutations/updateProductTypeProductGeneration.d.ts +7 -7
  227. package/types/schema/mutations/updateSource.d.ts +9 -9
  228. package/types/schema/mutations/updateStorePage.d.ts +7 -7
  229. package/types/schema/queries/affiliateUrl.d.ts +11 -11
  230. package/types/schema/queries/aliasIdListBySomeId.d.ts +6 -6
  231. package/types/schema/queries/analyticsTrack.d.ts +5 -5
  232. package/types/schema/queries/appliedCategoryIdListBySomeId.d.ts +6 -6
  233. package/types/schema/queries/baseScore.d.ts +8 -8
  234. package/types/schema/queries/baseScoreRatingIdList.d.ts +7 -7
  235. package/types/schema/queries/baseScoresByCategoryId.d.ts +11 -11
  236. package/types/schema/queries/bestInClass.d.ts +19 -19
  237. package/types/schema/queries/brandAliasResolution.d.ts +7 -7
  238. package/types/schema/queries/brandCategoryRankings.d.ts +29 -29
  239. package/types/schema/queries/brandIdBySomeId.d.ts +5 -5
  240. package/types/schema/queries/brandIdList.d.ts +8 -8
  241. package/types/schema/queries/brandIdListBySearch.d.ts +6 -6
  242. package/types/schema/queries/brandSocialMediaPostList.d.ts +21 -21
  243. package/types/schema/queries/brandSocialMediaPostList.d.ts.map +1 -1
  244. package/types/schema/queries/categoryAliasResolution.d.ts +8 -8
  245. package/types/schema/queries/categoryDisplayMode.d.ts +10 -10
  246. package/types/schema/queries/categoryIdByUrlSlug.d.ts +5 -5
  247. package/types/schema/queries/categoryIdList.d.ts +8 -8
  248. package/types/schema/queries/categoryIdListBySomeId.d.ts +10 -10
  249. package/types/schema/queries/categoryIdListBySourceId.d.ts +6 -6
  250. package/types/schema/queries/categoryModifierSearchList.d.ts +21 -21
  251. package/types/schema/queries/categoryRankings.d.ts +13 -13
  252. package/types/schema/queries/categorySearchList.d.ts +16 -16
  253. package/types/schema/queries/categoryStatusList.d.ts +9 -9
  254. package/types/schema/queries/crawlIdList.d.ts +11 -11
  255. package/types/schema/queries/crawlIdListByUrl.d.ts +6 -6
  256. package/types/schema/queries/descriptionMarkdown.d.ts +5 -5
  257. package/types/schema/queries/entityType.d.ts +54 -54
  258. package/types/schema/queries/fallbackPriceByProductTypeId.d.ts +6 -6
  259. package/types/schema/queries/inputLayerVersion.d.ts +5 -5
  260. package/types/schema/queries/latestRatingIdList.d.ts +6 -6
  261. package/types/schema/queries/latestRatingIdListBySomeId.d.ts +6 -6
  262. package/types/schema/queries/mediaIdListBySomeId.d.ts +6 -6
  263. package/types/schema/queries/mlCategoryDisplayMode.d.ts +8 -8
  264. package/types/schema/queries/noteMarkdown.d.ts +5 -5
  265. package/types/schema/queries/offerIdListByStorePageId.d.ts +12 -12
  266. package/types/schema/queries/possibleAliasIdListBySomeId.d.ts +6 -6
  267. package/types/schema/queries/possibleStorePageIdListBySomeId.d.ts +6 -6
  268. package/types/schema/queries/preferredCategoryIdListByProductId.d.ts +6 -6
  269. package/types/schema/queries/preferredLatestRatingIdListBySomeId.d.ts +6 -6
  270. package/types/schema/queries/preferredStorePageList.d.ts +11 -11
  271. package/types/schema/queries/priceHistoryLookup.d.ts +16 -16
  272. package/types/schema/queries/pricePointCompetitors.d.ts +16 -16
  273. package/types/schema/queries/priceRangeByCategoryId.d.ts +10 -10
  274. package/types/schema/queries/productConfigurationIdListBySomeId.d.ts +6 -6
  275. package/types/schema/queries/productDealList.d.ts +13 -13
  276. package/types/schema/queries/productDocumentByStoreUrl.d.ts +7 -7
  277. package/types/schema/queries/productDocumentsByProductIds.d.ts +6 -6
  278. package/types/schema/queries/productFamilyIdBySomeId.d.ts +5 -5
  279. package/types/schema/queries/productFamilyIdListBySomeId.d.ts +6 -6
  280. package/types/schema/queries/productGenerationIdBySomeId.d.ts +5 -5
  281. package/types/schema/queries/productGenerationIdListBySomeId.d.ts +6 -6
  282. package/types/schema/queries/productListSort.d.ts +9 -9
  283. package/types/schema/queries/productPricePointList.d.ts +13 -13
  284. package/types/schema/queries/productSearchList.d.ts +39 -39
  285. package/types/schema/queries/productTypeIdBySomeId.d.ts +5 -5
  286. package/types/schema/queries/productTypeIdByStoreUrl.d.ts +6 -6
  287. package/types/schema/queries/productTypeIdListByCategoryId.d.ts +10 -10
  288. package/types/schema/queries/productTypeIdListByModifiers.d.ts +7 -7
  289. package/types/schema/queries/productTypeIdListBySomeId.d.ts +6 -6
  290. package/types/schema/queries/saleMetrics.d.ts +8 -8
  291. package/types/schema/queries/searchSuggestionList.d.ts +9 -9
  292. package/types/schema/queries/sectionDataByCrawlId.d.ts +19 -19
  293. package/types/schema/queries/sourceIdList.d.ts +4 -4
  294. package/types/schema/queries/specIdListBySomeId.d.ts +6 -6
  295. package/types/schema/queries/specTypeIdList.d.ts +12 -12
  296. package/types/schema/queries/specTypeValidValues.d.ts +15 -15
  297. package/types/schema/queries/specValueRangeListByCategoryId.d.ts +36 -36
  298. package/types/schema/queries/stablePriceByProductId.d.ts +6 -6
  299. package/types/schema/queries/stablePriceByProductIdAndStoreName.d.ts +7 -7
  300. package/types/schema/queries/stablePriceByStorePageId.d.ts +6 -6
  301. package/types/schema/queries/storePageFetchData.d.ts +12 -12
  302. package/types/schema/queries/storePageIdByUrl.d.ts +6 -6
  303. package/types/schema/queries/storePageIdListBySomeId.d.ts +6 -6
  304. package/types/schema/queries/storePageInfoBySku.d.ts +20 -20
  305. package/types/schema/queries/storePageScrapeData.d.ts +9 -9
  306. package/types/schema/queries/subCategoryIdListByCategoryId.d.ts +6 -6
  307. package/types/schema/queries/subsetModifierDataByModifiers.d.ts +12 -12
  308. package/types/schema/queries/topProductDocumentList.d.ts +8 -8
  309. package/types/schema/queries/unstableMediaIdListByCategoryId.d.ts +6 -6
  310. package/types/schema/queries/unstableSourceTrust.d.ts +9 -9
  311. package/types/schema/queries/userIdList.d.ts +4 -4
  312. package/types/schema/queries/userPermissionsByUserId.d.ts +7 -7
  313. package/types/schema/queries/userRestictedData.d.ts +10 -10
  314. package/types/schema/queries/userReviewAnalysis.d.ts +36 -36
  315. package/types/schema/queries/whoAmI.d.ts +5 -5
  316. package/types/schema/queries.d.ts +81 -81
  317. package/types/schema/responses.d.ts +81 -81
  318. package/types/store/entities/index.d.ts +23 -23
  319. package/types/store/entities/makeEntityReducer.d.ts +5 -5
  320. package/types/store/errors/index.d.ts +4 -4
  321. package/types/store/errors/makeErrorReducer.d.ts +5 -5
  322. package/types/store/index.d.ts +116 -116
  323. package/types/store/responses/index.d.ts +88 -88
  324. package/types/store/responses/makeResponseReducer.d.ts +5 -5
package/dist/Context.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_1 = require("react");
4
- const ApiContext = react_1.createContext(null);
5
- exports.default = ApiContext;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const ApiContext = react_1.createContext(null);
5
+ exports.default = ApiContext;
6
6
  //# sourceMappingURL=Context.js.map
package/dist/Provider.js CHANGED
@@ -1,14 +1,14 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const react_redux_1 = require("react-redux");
8
- const Context_1 = __importDefault(require("./Context"));
9
- const store_1 = __importDefault(require("./store"));
10
- const ApiProvider = ({ children }) => {
11
- return (react_1.default.createElement(react_redux_1.Provider, { store: store_1.default, context: Context_1.default }, children));
12
- };
13
- exports.default = ApiProvider;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_redux_1 = require("react-redux");
8
+ const Context_1 = __importDefault(require("./Context"));
9
+ const store_1 = __importDefault(require("./store"));
10
+ const ApiProvider = ({ children }) => {
11
+ return (react_1.default.createElement(react_redux_1.Provider, { store: store_1.default, context: Context_1.default }, children));
12
+ };
13
+ exports.default = ApiProvider;
14
14
  //# sourceMappingURL=Provider.js.map
package/dist/actions.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=actions.js.map
@@ -1,55 +1,55 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueryHttpError = exports.QueryResponseError = exports.QueryValidationError = exports.QueryReferenceError = exports.QueryFetchError = exports.QueryError = void 0;
4
- class QueryError extends Error {
5
- constructor(query, message = "") {
6
- super(message);
7
- this.query = query;
8
- Object.setPrototypeOf(this, QueryError.prototype);
9
- }
10
- }
11
- exports.QueryError = QueryError;
12
- class QueryFetchError extends QueryError {
13
- constructor(query, message = "") {
14
- super(query, message);
15
- this.name = "QueryFetchError";
16
- Object.setPrototypeOf(this, QueryFetchError.prototype);
17
- }
18
- }
19
- exports.QueryFetchError = QueryFetchError;
20
- class QueryReferenceError extends QueryError {
21
- constructor(query, message = "") {
22
- super(query, message);
23
- this.name = "QueryReferenceError";
24
- Object.setPrototypeOf(this, QueryReferenceError.prototype);
25
- }
26
- }
27
- exports.QueryReferenceError = QueryReferenceError;
28
- class QueryValidationError extends QueryError {
29
- constructor(query, message = "") {
30
- super(query, message);
31
- this.name = "QueryValidationError";
32
- Object.setPrototypeOf(this, QueryReferenceError.prototype);
33
- }
34
- }
35
- exports.QueryValidationError = QueryValidationError;
36
- class QueryResponseError extends QueryError {
37
- constructor(query, errors, message = "") {
38
- super(query, message);
39
- this.name = "QueryResponseError";
40
- this.errors = errors;
41
- Object.setPrototypeOf(this, QueryResponseError.prototype);
42
- }
43
- }
44
- exports.QueryResponseError = QueryResponseError;
45
- class QueryHttpError extends QueryError {
46
- constructor(query, status, body, message = "") {
47
- super(query, message);
48
- this.name = "QueryHttpError";
49
- this.status = status;
50
- this.body = body;
51
- Object.setPrototypeOf(this, QueryHttpError.prototype);
52
- }
53
- }
54
- exports.QueryHttpError = QueryHttpError;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryHttpError = exports.QueryResponseError = exports.QueryValidationError = exports.QueryReferenceError = exports.QueryFetchError = exports.QueryError = void 0;
4
+ class QueryError extends Error {
5
+ constructor(query, message = "") {
6
+ super(message);
7
+ this.query = query;
8
+ Object.setPrototypeOf(this, QueryError.prototype);
9
+ }
10
+ }
11
+ exports.QueryError = QueryError;
12
+ class QueryFetchError extends QueryError {
13
+ constructor(query, message = "") {
14
+ super(query, message);
15
+ this.name = "QueryFetchError";
16
+ Object.setPrototypeOf(this, QueryFetchError.prototype);
17
+ }
18
+ }
19
+ exports.QueryFetchError = QueryFetchError;
20
+ class QueryReferenceError extends QueryError {
21
+ constructor(query, message = "") {
22
+ super(query, message);
23
+ this.name = "QueryReferenceError";
24
+ Object.setPrototypeOf(this, QueryReferenceError.prototype);
25
+ }
26
+ }
27
+ exports.QueryReferenceError = QueryReferenceError;
28
+ class QueryValidationError extends QueryError {
29
+ constructor(query, message = "") {
30
+ super(query, message);
31
+ this.name = "QueryValidationError";
32
+ Object.setPrototypeOf(this, QueryReferenceError.prototype);
33
+ }
34
+ }
35
+ exports.QueryValidationError = QueryValidationError;
36
+ class QueryResponseError extends QueryError {
37
+ constructor(query, errors, message = "") {
38
+ super(query, message);
39
+ this.name = "QueryResponseError";
40
+ this.errors = errors;
41
+ Object.setPrototypeOf(this, QueryResponseError.prototype);
42
+ }
43
+ }
44
+ exports.QueryResponseError = QueryResponseError;
45
+ class QueryHttpError extends QueryError {
46
+ constructor(query, status, body, message = "") {
47
+ super(query, message);
48
+ this.name = "QueryHttpError";
49
+ this.status = status;
50
+ this.body = body;
51
+ Object.setPrototypeOf(this, QueryHttpError.prototype);
52
+ }
53
+ }
54
+ exports.QueryHttpError = QueryHttpError;
55
55
  //# sourceMappingURL=QueryError.js.map
@@ -1,104 +1,104 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports._setDefaultQueryResolver = exports._getDefaultQueryResolver = exports._defaultBatchKey = void 0;
13
- require("cross-fetch/polyfill");
14
- const getQueryHash_1 = require("./getQueryHash");
15
- const QueryError_1 = require("./QueryError");
16
- exports._defaultBatchKey = "__DEFAULT_BATCH_KEY__";
17
- class QueryResolver {
18
- constructor(options = {}) {
19
- const { apiHost, apiKey } = options;
20
- this.apiHost = apiHost !== null && apiHost !== void 0 ? apiHost : "https://lustre-api.com";
21
- this.apiKey = apiKey;
22
- this.resolverQueues = {};
23
- }
24
- addQueryToQueue(query, options = {}) {
25
- const { batchKey = exports._defaultBatchKey, dispatch } = options;
26
- const promise = new Promise((resolve, reject) => {
27
- var _a;
28
- var _b;
29
- const queryResolver = { query, resolve, reject, dispatch };
30
- (_a = (_b = this.resolverQueues)[batchKey]) !== null && _a !== void 0 ? _a : (_b[batchKey] = []);
31
- this.resolverQueues[batchKey].push(queryResolver);
32
- });
33
- setTimeout(() => this.performQueryRequest(), 1);
34
- return promise;
35
- }
36
- performQueryRequest() {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- const resolverValues = Object.values(this.resolverQueues);
39
- this.resolverQueues = {};
40
- resolverValues.forEach((resolverQueue) => {
41
- if (resolverQueue.length === 0) {
42
- return;
43
- }
44
- const queries = resolverQueue.reduce((output, resolver) => {
45
- var _a;
46
- var _b;
47
- const query = resolver.query;
48
- const queryHash = getQueryHash_1.getQueryHash(query);
49
- (_a = output[_b = query.name]) !== null && _a !== void 0 ? _a : (output[_b] = {});
50
- const dict = output[query.name];
51
- dict[queryHash] = query.body;
52
- return output;
53
- }, {});
54
- const headers = new Headers({
55
- "Content-type": "application/json",
56
- });
57
- if (this.apiKey) {
58
- headers.append("Authorization", `Bearer ${this.apiKey}`);
59
- }
60
- const request = new Request(this.apiHost + "/queries", {
61
- body: JSON.stringify({ queries }),
62
- method: "POST",
63
- headers,
64
- });
65
- const dispatches = [...new Set(resolverQueue.map(({ dispatch }) => dispatch))];
66
- fetch(request)
67
- .then((response) => __awaiter(this, void 0, void 0, function* () {
68
- if (response.ok) {
69
- const json = yield response.json();
70
- resolverQueue.forEach((resolver) => {
71
- resolver.resolve(json);
72
- });
73
- dispatches.forEach((dispatch) => {
74
- dispatch === null || dispatch === void 0 ? void 0 : dispatch({
75
- type: "response_arrived",
76
- response: json,
77
- });
78
- });
79
- }
80
- else {
81
- const body = yield response.text();
82
- resolverQueue.forEach((resolver) => {
83
- resolver.reject(new QueryError_1.QueryHttpError(resolver.query, response.status, body));
84
- });
85
- }
86
- }))
87
- .catch((error) => {
88
- resolverQueue.forEach((resolver) => {
89
- resolver.reject(new QueryError_1.QueryFetchError(resolver.query, error.message));
90
- });
91
- });
92
- });
93
- });
94
- }
95
- }
96
- let defaultQueryResolver = new QueryResolver();
97
- const _getDefaultQueryResolver = () => defaultQueryResolver;
98
- exports._getDefaultQueryResolver = _getDefaultQueryResolver;
99
- const _setDefaultQueryResolver = (queryResolver) => {
100
- defaultQueryResolver = queryResolver;
101
- };
102
- exports._setDefaultQueryResolver = _setDefaultQueryResolver;
103
- exports.default = QueryResolver;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports._setDefaultQueryResolver = exports._getDefaultQueryResolver = exports._defaultBatchKey = void 0;
13
+ require("cross-fetch/polyfill");
14
+ const getQueryHash_1 = require("./getQueryHash");
15
+ const QueryError_1 = require("./QueryError");
16
+ exports._defaultBatchKey = "__DEFAULT_BATCH_KEY__";
17
+ class QueryResolver {
18
+ constructor(options = {}) {
19
+ const { apiHost, apiKey } = options;
20
+ this.apiHost = apiHost !== null && apiHost !== void 0 ? apiHost : "https://lustre-api.com";
21
+ this.apiKey = apiKey;
22
+ this.resolverQueues = {};
23
+ }
24
+ addQueryToQueue(query, options = {}) {
25
+ const { batchKey = exports._defaultBatchKey, dispatch } = options;
26
+ const promise = new Promise((resolve, reject) => {
27
+ var _a;
28
+ var _b;
29
+ const queryResolver = { query, resolve, reject, dispatch };
30
+ (_a = (_b = this.resolverQueues)[batchKey]) !== null && _a !== void 0 ? _a : (_b[batchKey] = []);
31
+ this.resolverQueues[batchKey].push(queryResolver);
32
+ });
33
+ setTimeout(() => this.performQueryRequest(), 1);
34
+ return promise;
35
+ }
36
+ performQueryRequest() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const resolverValues = Object.values(this.resolverQueues);
39
+ this.resolverQueues = {};
40
+ resolverValues.forEach((resolverQueue) => {
41
+ if (resolverQueue.length === 0) {
42
+ return;
43
+ }
44
+ const queries = resolverQueue.reduce((output, resolver) => {
45
+ var _a;
46
+ var _b;
47
+ const query = resolver.query;
48
+ const queryHash = getQueryHash_1.getQueryHash(query);
49
+ (_a = output[_b = query.name]) !== null && _a !== void 0 ? _a : (output[_b] = {});
50
+ const dict = output[query.name];
51
+ dict[queryHash] = query.body;
52
+ return output;
53
+ }, {});
54
+ const headers = new Headers({
55
+ "Content-type": "application/json",
56
+ });
57
+ if (this.apiKey) {
58
+ headers.append("Authorization", `Bearer ${this.apiKey}`);
59
+ }
60
+ const request = new Request(this.apiHost + "/queries", {
61
+ body: JSON.stringify({ queries }),
62
+ method: "POST",
63
+ headers,
64
+ });
65
+ const dispatches = [...new Set(resolverQueue.map(({ dispatch }) => dispatch))];
66
+ fetch(request)
67
+ .then((response) => __awaiter(this, void 0, void 0, function* () {
68
+ if (response.ok) {
69
+ const json = yield response.json();
70
+ resolverQueue.forEach((resolver) => {
71
+ resolver.resolve(json);
72
+ });
73
+ dispatches.forEach((dispatch) => {
74
+ dispatch === null || dispatch === void 0 ? void 0 : dispatch({
75
+ type: "response_arrived",
76
+ response: json,
77
+ });
78
+ });
79
+ }
80
+ else {
81
+ const body = yield response.text();
82
+ resolverQueue.forEach((resolver) => {
83
+ resolver.reject(new QueryError_1.QueryHttpError(resolver.query, response.status, body));
84
+ });
85
+ }
86
+ }))
87
+ .catch((error) => {
88
+ resolverQueue.forEach((resolver) => {
89
+ resolver.reject(new QueryError_1.QueryFetchError(resolver.query, error.message));
90
+ });
91
+ });
92
+ });
93
+ });
94
+ }
95
+ }
96
+ let defaultQueryResolver = new QueryResolver();
97
+ const _getDefaultQueryResolver = () => defaultQueryResolver;
98
+ exports._getDefaultQueryResolver = _getDefaultQueryResolver;
99
+ const _setDefaultQueryResolver = (queryResolver) => {
100
+ defaultQueryResolver = queryResolver;
101
+ };
102
+ exports._setDefaultQueryResolver = _setDefaultQueryResolver;
103
+ exports.default = QueryResolver;
104
104
  //# sourceMappingURL=QueryResolver.js.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=WrappedQuery.js.map
@@ -1,135 +1,135 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const hl = [];
4
- for (let i = 0; i < 256; i++) {
5
- hl[i] = ((i >> 4) & 15).toString(16) + (i & 15).toString(16);
6
- }
7
- function fast1a64utf(str) {
8
- const l = str.length;
9
- let c;
10
- let i;
11
- let t0 = 0;
12
- let v0 = 0x2325;
13
- let t1 = 0;
14
- let v1 = 0x8422;
15
- let t2 = 0;
16
- let v2 = 0x9ce4;
17
- let t3 = 0;
18
- let v3 = 0xcbf2;
19
- for (i = 0; i < l; i++) {
20
- c = str.charCodeAt(i);
21
- if (c < 128) {
22
- v0 ^= c;
23
- }
24
- else if (c < 2048) {
25
- v0 ^= (c >> 6) | 192;
26
- t0 = v0 * 435;
27
- t1 = v1 * 435;
28
- t2 = v2 * 435;
29
- t3 = v3 * 435;
30
- t2 += v0 << 8;
31
- t3 += v1 << 8;
32
- t1 += t0 >>> 16;
33
- v0 = t0 & 65535;
34
- t2 += t1 >>> 16;
35
- v1 = t1 & 65535;
36
- v3 = (t3 + (t2 >>> 16)) & 65535;
37
- v2 = t2 & 65535;
38
- v0 ^= (c & 63) | 128;
39
- }
40
- else if ((c & 64512) === 55296 && i + 1 < l && (str.charCodeAt(i + 1) & 64512) === 56320) {
41
- c = 65536 + ((c & 1023) << 10) + (str.charCodeAt(++i) & 1023);
42
- v0 ^= (c >> 18) | 240;
43
- t0 = v0 * 435;
44
- t1 = v1 * 435;
45
- t2 = v2 * 435;
46
- t3 = v3 * 435;
47
- t2 += v0 << 8;
48
- t3 += v1 << 8;
49
- t1 += t0 >>> 16;
50
- v0 = t0 & 65535;
51
- t2 += t1 >>> 16;
52
- v1 = t1 & 65535;
53
- v3 = (t3 + (t2 >>> 16)) & 65535;
54
- v2 = t2 & 65535;
55
- v0 ^= ((c >> 12) & 63) | 128;
56
- t0 = v0 * 435;
57
- t1 = v1 * 435;
58
- t2 = v2 * 435;
59
- t3 = v3 * 435;
60
- t2 += v0 << 8;
61
- t3 += v1 << 8;
62
- t1 += t0 >>> 16;
63
- v0 = t0 & 65535;
64
- t2 += t1 >>> 16;
65
- v1 = t1 & 65535;
66
- v3 = (t3 + (t2 >>> 16)) & 65535;
67
- v2 = t2 & 65535;
68
- v0 ^= ((c >> 6) & 63) | 128;
69
- t0 = v0 * 435;
70
- t1 = v1 * 435;
71
- t2 = v2 * 435;
72
- t3 = v3 * 435;
73
- t2 += v0 << 8;
74
- t3 += v1 << 8;
75
- t1 += t0 >>> 16;
76
- v0 = t0 & 65535;
77
- t2 += t1 >>> 16;
78
- v1 = t1 & 65535;
79
- v3 = (t3 + (t2 >>> 16)) & 65535;
80
- v2 = t2 & 65535;
81
- v0 ^= (c & 63) | 128;
82
- }
83
- else {
84
- v0 ^= (c >> 12) | 224;
85
- t0 = v0 * 435;
86
- t1 = v1 * 435;
87
- t2 = v2 * 435;
88
- t3 = v3 * 435;
89
- t2 += v0 << 8;
90
- t3 += v1 << 8;
91
- t1 += t0 >>> 16;
92
- v0 = t0 & 65535;
93
- t2 += t1 >>> 16;
94
- v1 = t1 & 65535;
95
- v3 = (t3 + (t2 >>> 16)) & 65535;
96
- v2 = t2 & 65535;
97
- v0 ^= ((c >> 6) & 63) | 128;
98
- t0 = v0 * 435;
99
- t1 = v1 * 435;
100
- t2 = v2 * 435;
101
- t3 = v3 * 435;
102
- t2 += v0 << 8;
103
- t3 += v1 << 8;
104
- t1 += t0 >>> 16;
105
- v0 = t0 & 65535;
106
- t2 += t1 >>> 16;
107
- v1 = t1 & 65535;
108
- v3 = (t3 + (t2 >>> 16)) & 65535;
109
- v2 = t2 & 65535;
110
- v0 ^= (c & 63) | 128;
111
- }
112
- t0 = v0 * 435;
113
- t1 = v1 * 435;
114
- t2 = v2 * 435;
115
- t3 = v3 * 435;
116
- t2 += v0 << 8;
117
- t3 += v1 << 8;
118
- t1 += t0 >>> 16;
119
- v0 = t0 & 65535;
120
- t2 += t1 >>> 16;
121
- v1 = t1 & 65535;
122
- v3 = (t3 + (t2 >>> 16)) & 65535;
123
- v2 = t2 & 65535;
124
- }
125
- return (hl[v3 >> 8] +
126
- hl[v3 & 255] +
127
- hl[v2 >> 8] +
128
- hl[v2 & 255] +
129
- hl[v1 >> 8] +
130
- hl[v1 & 255] +
131
- hl[v0 >> 8] +
132
- hl[v0 & 255]);
133
- }
134
- exports.default = fast1a64utf;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const hl = [];
4
+ for (let i = 0; i < 256; i++) {
5
+ hl[i] = ((i >> 4) & 15).toString(16) + (i & 15).toString(16);
6
+ }
7
+ function fast1a64utf(str) {
8
+ const l = str.length;
9
+ let c;
10
+ let i;
11
+ let t0 = 0;
12
+ let v0 = 0x2325;
13
+ let t1 = 0;
14
+ let v1 = 0x8422;
15
+ let t2 = 0;
16
+ let v2 = 0x9ce4;
17
+ let t3 = 0;
18
+ let v3 = 0xcbf2;
19
+ for (i = 0; i < l; i++) {
20
+ c = str.charCodeAt(i);
21
+ if (c < 128) {
22
+ v0 ^= c;
23
+ }
24
+ else if (c < 2048) {
25
+ v0 ^= (c >> 6) | 192;
26
+ t0 = v0 * 435;
27
+ t1 = v1 * 435;
28
+ t2 = v2 * 435;
29
+ t3 = v3 * 435;
30
+ t2 += v0 << 8;
31
+ t3 += v1 << 8;
32
+ t1 += t0 >>> 16;
33
+ v0 = t0 & 65535;
34
+ t2 += t1 >>> 16;
35
+ v1 = t1 & 65535;
36
+ v3 = (t3 + (t2 >>> 16)) & 65535;
37
+ v2 = t2 & 65535;
38
+ v0 ^= (c & 63) | 128;
39
+ }
40
+ else if ((c & 64512) === 55296 && i + 1 < l && (str.charCodeAt(i + 1) & 64512) === 56320) {
41
+ c = 65536 + ((c & 1023) << 10) + (str.charCodeAt(++i) & 1023);
42
+ v0 ^= (c >> 18) | 240;
43
+ t0 = v0 * 435;
44
+ t1 = v1 * 435;
45
+ t2 = v2 * 435;
46
+ t3 = v3 * 435;
47
+ t2 += v0 << 8;
48
+ t3 += v1 << 8;
49
+ t1 += t0 >>> 16;
50
+ v0 = t0 & 65535;
51
+ t2 += t1 >>> 16;
52
+ v1 = t1 & 65535;
53
+ v3 = (t3 + (t2 >>> 16)) & 65535;
54
+ v2 = t2 & 65535;
55
+ v0 ^= ((c >> 12) & 63) | 128;
56
+ t0 = v0 * 435;
57
+ t1 = v1 * 435;
58
+ t2 = v2 * 435;
59
+ t3 = v3 * 435;
60
+ t2 += v0 << 8;
61
+ t3 += v1 << 8;
62
+ t1 += t0 >>> 16;
63
+ v0 = t0 & 65535;
64
+ t2 += t1 >>> 16;
65
+ v1 = t1 & 65535;
66
+ v3 = (t3 + (t2 >>> 16)) & 65535;
67
+ v2 = t2 & 65535;
68
+ v0 ^= ((c >> 6) & 63) | 128;
69
+ t0 = v0 * 435;
70
+ t1 = v1 * 435;
71
+ t2 = v2 * 435;
72
+ t3 = v3 * 435;
73
+ t2 += v0 << 8;
74
+ t3 += v1 << 8;
75
+ t1 += t0 >>> 16;
76
+ v0 = t0 & 65535;
77
+ t2 += t1 >>> 16;
78
+ v1 = t1 & 65535;
79
+ v3 = (t3 + (t2 >>> 16)) & 65535;
80
+ v2 = t2 & 65535;
81
+ v0 ^= (c & 63) | 128;
82
+ }
83
+ else {
84
+ v0 ^= (c >> 12) | 224;
85
+ t0 = v0 * 435;
86
+ t1 = v1 * 435;
87
+ t2 = v2 * 435;
88
+ t3 = v3 * 435;
89
+ t2 += v0 << 8;
90
+ t3 += v1 << 8;
91
+ t1 += t0 >>> 16;
92
+ v0 = t0 & 65535;
93
+ t2 += t1 >>> 16;
94
+ v1 = t1 & 65535;
95
+ v3 = (t3 + (t2 >>> 16)) & 65535;
96
+ v2 = t2 & 65535;
97
+ v0 ^= ((c >> 6) & 63) | 128;
98
+ t0 = v0 * 435;
99
+ t1 = v1 * 435;
100
+ t2 = v2 * 435;
101
+ t3 = v3 * 435;
102
+ t2 += v0 << 8;
103
+ t3 += v1 << 8;
104
+ t1 += t0 >>> 16;
105
+ v0 = t0 & 65535;
106
+ t2 += t1 >>> 16;
107
+ v1 = t1 & 65535;
108
+ v3 = (t3 + (t2 >>> 16)) & 65535;
109
+ v2 = t2 & 65535;
110
+ v0 ^= (c & 63) | 128;
111
+ }
112
+ t0 = v0 * 435;
113
+ t1 = v1 * 435;
114
+ t2 = v2 * 435;
115
+ t3 = v3 * 435;
116
+ t2 += v0 << 8;
117
+ t3 += v1 << 8;
118
+ t1 += t0 >>> 16;
119
+ v0 = t0 & 65535;
120
+ t2 += t1 >>> 16;
121
+ v1 = t1 & 65535;
122
+ v3 = (t3 + (t2 >>> 16)) & 65535;
123
+ v2 = t2 & 65535;
124
+ }
125
+ return (hl[v3 >> 8] +
126
+ hl[v3 & 255] +
127
+ hl[v2 >> 8] +
128
+ hl[v2 & 255] +
129
+ hl[v1 >> 8] +
130
+ hl[v1 & 255] +
131
+ hl[v0 >> 8] +
132
+ hl[v0 & 255]);
133
+ }
134
+ exports.default = fast1a64utf;
135
135
  //# sourceMappingURL=fast1a64utf.js.map