@graphext/cuery 0.2.0 → 0.2.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.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Browser-safe exports for @graphext/cuery
3
+ *
4
+ * This module only exports types and pure functions that can safely run in the browser.
5
+ * It excludes server-only modules like chatgptScraper, googleAds, and API functions
6
+ * that depend on Node.js or Deno-specific APIs.
7
+ *
8
+ * @module
9
+ */
10
+ export * from './src/schemas/index.js';
11
+ export * from './src/tools/seedKeywords.js';
12
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,wBAAwB,CAAC;AAGvC,cAAc,6BAA6B,CAAC"}
package/esm/browser.js ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Browser-safe exports for @graphext/cuery
3
+ *
4
+ * This module only exports types and pure functions that can safely run in the browser.
5
+ * It excludes server-only modules like chatgptScraper, googleAds, and API functions
6
+ * that depend on Node.js or Deno-specific APIs.
7
+ *
8
+ * @module
9
+ */
10
+ // Types and schemas (no runtime dependencies)
11
+ export * from './src/schemas/index.js';
12
+ // Pure functions for seed keyword handling (no external dependencies)
13
+ export * from './src/tools/seedKeywords.js';
@@ -1 +1 @@
1
- {"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../src/src/tools/translate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AA+C/D,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,YAAY,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAsB,S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ACjC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAQxB"}
@@ -71,7 +71,7 @@ You are an expert in understanding search intent.
71
71
  Convert the following natural language prompt into an equivalent Google search keyword.
72
72
  The keyword should:
73
73
 
74
- - Be concise (typically 2-5 words)
74
+ - Be concise
75
75
  - Capture the core search intent
76
76
  - Remove conversational filler and politeness
77
77
  - Use common search terms
@@ -84,6 +84,9 @@ For example:
84
84
 
85
85
  Make sure the keyword is in the language "{language}".
86
86
 
87
+ It's mandatory that the keyword contains no more than 4 words, ideally 2-3 words.
88
+ Otherwise, Google keyword planner will not accept it.
89
+
87
90
  # Prompt
88
91
 
89
92
  {prompt}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphext/cuery",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Cuery tools for AI-powered keyword research and brand analysis",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,6 +16,10 @@
16
16
  ".": {
17
17
  "import": "./esm/mod.js",
18
18
  "require": "./script/mod.js"
19
+ },
20
+ "./browser": {
21
+ "import": "./esm/browser.js",
22
+ "require": "./script/browser.js"
19
23
  }
20
24
  },
21
25
  "scripts": {},
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Browser-safe exports for @graphext/cuery
3
+ *
4
+ * This module only exports types and pure functions that can safely run in the browser.
5
+ * It excludes server-only modules like chatgptScraper, googleAds, and API functions
6
+ * that depend on Node.js or Deno-specific APIs.
7
+ *
8
+ * @module
9
+ */
10
+ export * from './src/schemas/index.js';
11
+ export * from './src/tools/seedKeywords.js';
12
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,wBAAwB,CAAC;AAGvC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /**
3
+ * Browser-safe exports for @graphext/cuery
4
+ *
5
+ * This module only exports types and pure functions that can safely run in the browser.
6
+ * It excludes server-only modules like chatgptScraper, googleAds, and API functions
7
+ * that depend on Node.js or Deno-specific APIs.
8
+ *
9
+ * @module
10
+ */
11
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ var desc = Object.getOwnPropertyDescriptor(m, k);
14
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
15
+ desc = { enumerable: true, get: function() { return m[k]; } };
16
+ }
17
+ Object.defineProperty(o, k2, desc);
18
+ }) : (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ o[k2] = m[k];
21
+ }));
22
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ // Types and schemas (no runtime dependencies)
27
+ __exportStar(require("./src/schemas/index.js"), exports);
28
+ // Pure functions for seed keyword handling (no external dependencies)
29
+ __exportStar(require("./src/tools/seedKeywords.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../src/src/tools/translate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AA+C/D,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,YAAY,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAsB,SAAS,CAC9B,EAAE,OAAO,EAAE,QAAe,EAAE,KAAoB,EAAE,YAAY,EAAE,YAAiB,EAAE,EAAE,eAAe,GAClG,OAAO,CAA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prompt into an equivalent Google search keyword.
78
78
  The keyword should:
79
79
 
80
- - Be concise (typically 2-5 words)
80
+ - Be concise
81
81
  - Capture the core search intent
82
82
  - Remove conversational filler and politeness
83
83
  - Use common search terms
@@ -90,6 +90,9 @@ For example:
90
90
 
91
91
  Make sure the keyword is in the language "{language}".
92
92
 
93
+ It's mandatory that the keyword contains no more than 4 words, ideally 2-3 words.
94
+ Otherwise, Google keyword planner will not accept it.
95
+
93
96
  # Prompt
94
97
 
95
98
  {prompt}