@snowcone-app/sdk 0.17.1 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#822](https://github.com/snowcone-app/snowcone-monorepo/pull/822) [`0d6a637`](https://github.com/snowcone-app/snowcone-monorepo/commit/0d6a637d94f94b4b1b6a085220587e458a73bd83) Thanks [@kevinsproles](https://github.com/kevinsproles)! - Fix the public catalog key scope: it now includes `documents.get` (exact product lookups by code), not just `search`. The previous key was search-only, which rejected the documented `GET /indexes/snowcone/documents/{code}` reads.
8
+
3
9
  ## 0.17.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -6205,7 +6205,7 @@ function validateProductLoose(product) {
6205
6205
  async function listProducts(config) {
6206
6206
  const f = getFetcher(config);
6207
6207
  const meilisearchHost = config?.meilisearch?.host || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_HOST || "https://search.snowcone.app";
6208
- const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "4a11f6599e39af365f6289dab46b77a30ef78ba1ac078f7d74e152c099b3b63c";
6208
+ const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "c4f053bf342250c472c2ef564628ab675543f46d0c1e606b09f41616a21c8fa7";
6209
6209
  const meilisearchIndex = config?.meilisearch?.index || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_INDEX || "snowcone";
6210
6210
  const headers = {
6211
6211
  "Content-Type": "application/json"
@@ -6231,7 +6231,7 @@ async function listProducts(config) {
6231
6231
  async function getProduct(idOrSlug, config) {
6232
6232
  const f = getFetcher(config);
6233
6233
  const meilisearchHost = config?.meilisearch?.host || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_HOST || "https://search.snowcone.app";
6234
- const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "4a11f6599e39af365f6289dab46b77a30ef78ba1ac078f7d74e152c099b3b63c";
6234
+ const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "c4f053bf342250c472c2ef564628ab675543f46d0c1e606b09f41616a21c8fa7";
6235
6235
  const meilisearchIndex = config?.meilisearch?.index || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_INDEX || "snowcone";
6236
6236
  const headers = {
6237
6237
  "Content-Type": "application/json"
@@ -6255,7 +6255,7 @@ async function getProduct(idOrSlug, config) {
6255
6255
  async function searchDesigns(query = "", options) {
6256
6256
  const f = getFetcher(options);
6257
6257
  const meilisearchHost = options?.meilisearch?.host || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_HOST || "https://search.snowcone.app";
6258
- const meilisearchApiKey = options?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "4a11f6599e39af365f6289dab46b77a30ef78ba1ac078f7d74e152c099b3b63c";
6258
+ const meilisearchApiKey = options?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "c4f053bf342250c472c2ef564628ab675543f46d0c1e606b09f41616a21c8fa7";
6259
6259
  const designsIndex = options?.meilisearch?.designsIndex || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_DESIGNS_INDEX || "snowcone-designs";
6260
6260
  const headers = {
6261
6261
  "Content-Type": "application/json"
package/dist/index.js CHANGED
@@ -5039,7 +5039,7 @@ function validateProductLoose(product) {
5039
5039
  async function listProducts(config) {
5040
5040
  const f = getFetcher(config);
5041
5041
  const meilisearchHost = config?.meilisearch?.host || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_HOST || "https://search.snowcone.app";
5042
- const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "4a11f6599e39af365f6289dab46b77a30ef78ba1ac078f7d74e152c099b3b63c";
5042
+ const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "c4f053bf342250c472c2ef564628ab675543f46d0c1e606b09f41616a21c8fa7";
5043
5043
  const meilisearchIndex = config?.meilisearch?.index || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_INDEX || "snowcone";
5044
5044
  const headers = {
5045
5045
  "Content-Type": "application/json"
@@ -5065,7 +5065,7 @@ async function listProducts(config) {
5065
5065
  async function getProduct(idOrSlug, config) {
5066
5066
  const f = getFetcher(config);
5067
5067
  const meilisearchHost = config?.meilisearch?.host || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_HOST || "https://search.snowcone.app";
5068
- const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "4a11f6599e39af365f6289dab46b77a30ef78ba1ac078f7d74e152c099b3b63c";
5068
+ const meilisearchApiKey = config?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "c4f053bf342250c472c2ef564628ab675543f46d0c1e606b09f41616a21c8fa7";
5069
5069
  const meilisearchIndex = config?.meilisearch?.index || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_INDEX || "snowcone";
5070
5070
  const headers = {
5071
5071
  "Content-Type": "application/json"
@@ -5089,7 +5089,7 @@ async function getProduct(idOrSlug, config) {
5089
5089
  async function searchDesigns(query = "", options) {
5090
5090
  const f = getFetcher(options);
5091
5091
  const meilisearchHost = options?.meilisearch?.host || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_HOST || "https://search.snowcone.app";
5092
- const meilisearchApiKey = options?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "4a11f6599e39af365f6289dab46b77a30ef78ba1ac078f7d74e152c099b3b63c";
5092
+ const meilisearchApiKey = options?.meilisearch?.apiKey || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_API_KEY || "c4f053bf342250c472c2ef564628ab675543f46d0c1e606b09f41616a21c8fa7";
5093
5093
  const designsIndex = options?.meilisearch?.designsIndex || typeof process !== "undefined" && process.env?.NEXT_PUBLIC_MEILISEARCH_DESIGNS_INDEX || "snowcone-designs";
5094
5094
  const headers = {
5095
5095
  "Content-Type": "application/json"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowcone-app/sdk",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "Snowcone SDK for product mockups and print-on-demand",
5
5
  "keywords": [
6
6
  "merch",