langchain-stripe-loader 0.1.0 → 0.3.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.
- package/LICENSE +21 -0
- package/README.md +83 -9
- package/dist/index.cjs +602 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +185 -0
- package/dist/index.d.ts +185 -3
- package/dist/index.js +580 -0
- package/dist/index.js.map +1 -0
- package/package.json +28 -19
- package/dist/StripeComLoader.d.ts +0 -44
- package/dist/StripeComLoader.d.ts.map +0 -1
- package/dist/StripeDocsLoader.d.ts +0 -34
- package/dist/StripeDocsLoader.d.ts.map +0 -1
- package/dist/StripeDocsLoader.spec.d.ts +0 -2
- package/dist/StripeDocsLoader.spec.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.spec.d.ts +0 -2
- package/dist/index.spec.d.ts.map +0 -1
- package/dist/langchain-stripe-loader.cjs +0 -30
- package/dist/langchain-stripe-loader.cjs.map +0 -1
- package/dist/langchain-stripe-loader.js +0 -6922
- package/dist/langchain-stripe-loader.js.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/url-filter.d.ts +0 -26
- package/dist/utils/url-filter.d.ts.map +0 -1
- package/dist/utils/url-filter.spec.d.ts +0 -2
- package/dist/utils/url-filter.spec.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -13
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.spec.d.ts +0 -2
- package/dist/utils.spec.d.ts.map +0 -1
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-filter.spec.d.ts","sourceRoot":"","sources":["../../src/utils/url-filter.spec.ts"],"names":[],"mappings":""}
|
package/dist/utils.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
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
|
-
*/
|
|
6
|
-
export declare function extractBodyFromHTML(htmlString: string): string[];
|
|
7
|
-
/**
|
|
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
|
-
*/
|
|
12
|
-
export declare function extractArticleFromHTML(htmlString: string): string[];
|
|
13
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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/dist/utils.spec.d.ts
DELETED
package/dist/utils.spec.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.spec.d.ts","sourceRoot":"","sources":["../src/utils.spec.ts"],"names":[],"mappings":""}
|