@akinon/next 1.92.0-rc.31 → 1.92.0-rc.32

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,7 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.92.0-rc.32
4
+
3
5
  ## 1.92.0-rc.31
4
6
 
5
7
  ### Minor Changes
@@ -12,6 +12,7 @@ export async function GET(request: Request) {
12
12
  const limit = searchParams.get('limit') || '20';
13
13
  const url = searchParams.get('url');
14
14
  const excludedProductIds = searchParams.get('excluded_product_ids');
15
+ const text = searchParams.get('text');
15
16
 
16
17
  if (!url) {
17
18
  return errorResponse('URL parameter is required', 400);
@@ -29,6 +30,10 @@ export async function GET(request: Request) {
29
30
  apiParams.append('excluded_product_ids', excludedProductIds);
30
31
  }
31
32
 
33
+ if (text) {
34
+ apiParams.append('text', text);
35
+ }
36
+
32
37
  const apiUrl = `${IMAGE_SEARCH_API_URL}?${apiParams.toString()}`;
33
38
 
34
39
  try {
@@ -85,6 +90,10 @@ export async function POST(request: Request) {
85
90
  bodyData.excluded_product_ids = requestBody.excluded_product_ids;
86
91
  }
87
92
 
93
+ if (requestBody.text) {
94
+ bodyData.text = requestBody.text;
95
+ }
96
+
88
97
  try {
89
98
  const response = await fetch(apiUrl, {
90
99
  method: 'POST',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/next",
3
3
  "description": "Core package for Project Zero Next",
4
- "version": "1.92.0-rc.31",
4
+ "version": "1.92.0-rc.32",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "set-cookie-parser": "2.6.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@akinon/eslint-plugin-projectzero": "1.92.0-rc.31",
37
+ "@akinon/eslint-plugin-projectzero": "1.92.0-rc.32",
38
38
  "@babel/core": "7.26.10",
39
39
  "@babel/preset-env": "7.26.9",
40
40
  "@babel/preset-typescript": "7.27.0",