langchain-stripe-loader 0.0.0 → 0.1.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.
@@ -0,0 +1,3 @@
1
+ export * from './url-filter';
2
+ export { extractArticleFromHTML } from '../utils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Utility functions for URL filtering
3
+ */
4
+ /**
5
+ * Checks if a URL matches the specified resource path
6
+ * @param url URL to check
7
+ * @param resource Resource path (single or multiple path segments)
8
+ * @returns true if matches, false otherwise
9
+ */
10
+ export declare function matchesResource(url: string, resource: string): boolean;
11
+ /**
12
+ * Checks if a URL matches any of the excluded resources
13
+ * @param url URL to check
14
+ * @param excludeResources Array of excluded resource paths
15
+ * @returns true if excluded, false otherwise
16
+ */
17
+ export declare function matchesExcludeResources(url: string, excludeResources: string[]): boolean;
18
+ /**
19
+ * Function to filter URLs
20
+ * @param urls Array of URLs to filter
21
+ * @param resource Resource path to include (optional)
22
+ * @param excludeResources Array of resource paths to exclude (optional)
23
+ * @returns Filtered array of URLs
24
+ */
25
+ export declare function filterUrls(urls: string[], resource?: string, excludeResources?: string[]): string[];
26
+ //# sourceMappingURL=url-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-filter.d.ts","sourceRoot":"","sources":["../../src/utils/url-filter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAetE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,OAAO,CA8BxF;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EAAE,EACd,QAAQ,CAAC,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAC1B,MAAM,EAAE,CAkBV"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=url-filter.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-filter.spec.d.ts","sourceRoot":"","sources":["../../src/utils/url-filter.spec.ts"],"names":[],"mappings":""}
package/dist/utils.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Function that extracts the content of body tags from HTML using regular expressions
3
- * @param {string} htmlString HTML string
4
- * @returns {string[]} Array of extracted body tag contents
2
+ * Extracts the body tag and its contents from an HTML string
3
+ * @param {string} htmlString - The HTML string to extract from
4
+ * @returns {string[]} Array of extracted body contents
5
5
  */
6
6
  export declare function extractBodyFromHTML(htmlString: string): string[];
7
7
  /**
8
- * Function that extracts the content of article tags from HTML using regular expressions
9
- * @param {string} htmlString HTML string
10
- * @returns {string[]} Array of extracted article tag contents
8
+ * Extracts article tags and their contents from an HTML string
9
+ * @param {string} htmlString - The HTML string to extract from
10
+ * @returns {string[]} Array of extracted article contents
11
11
  */
12
12
  export declare function extractArticleFromHTML(htmlString: string): string[];
13
13
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,YAyBrD;AACD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,YAyBxD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,YA6BrD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,YAqHxD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain-stripe-loader",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/langchain-stripe-loader.cjs",
6
6
  "module": "./dist/langchain-stripe-loader.js",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@langchain/core": "^0.3.42",
26
- "stripe-loaders-core": "^0.0.0",
27
- "turndown": "^7.2.0"
26
+ "node-html-markdown": "^1.3.0",
27
+ "stripe-loaders-core": "^0.0.0"
28
28
  },
29
29
  "keywords": [
30
30
  "stripe",
@@ -49,8 +49,5 @@
49
49
  "homepage": "https://github.com/wpkyoto/stripe-docs-loader/tree/main/packages/langchain-stripe-loader#readme",
50
50
  "publishConfig": {
51
51
  "access": "public"
52
- },
53
- "devDependencies": {
54
- "@types/turndown": "^5.0.5"
55
52
  }
56
53
  }