Comparing version 1.0.7 to 1.0.8
@@ -19,2 +19,11 @@ /** | ||
export declare const parse: (url: string) => string; | ||
/** | ||
* This simply exports the `parse` function as the default export. | ||
* | ||
* ```ts | ||
* import shurley from 'jsr:@brn/shurley@1.0.8'; // or import shurley from 'https://deno.land/x/shurley@1.0.8/mod.ts'; | ||
* | ||
* const parsedUrl = shurley.parse('example.com'); // "https://example.com" | ||
* ``` | ||
*/ | ||
declare const _default: { | ||
@@ -21,0 +30,0 @@ parse: (url: string) => string; |
@@ -36,2 +36,11 @@ /** | ||
}; | ||
/** | ||
* This simply exports the `parse` function as the default export. | ||
* | ||
* ```ts | ||
* import shurley from 'jsr:@brn/shurley@1.0.8'; // or import shurley from 'https://deno.land/x/shurley@1.0.8/mod.ts'; | ||
* | ||
* const parsedUrl = shurley.parse('example.com'); // "https://example.com" | ||
* ``` | ||
*/ | ||
export default { parse }; |
{ | ||
"name": "shurley", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Validate or fix URLs from user input. People make mistakes!", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -26,3 +26,3 @@ # Shurley | ||
```ts | ||
import shurley from 'jsr:@brn/shurley@1.0.6'; // or import shurley from 'https://deno.land/x/shurley@1.0.6/mod.ts'; | ||
import shurley from 'jsr:@brn/shurley@1.0.8'; // or import shurley from 'https://deno.land/x/shurley@1.0.8/mod.ts'; | ||
@@ -29,0 +29,0 @@ const parsedUrl = shurley.parse('example.com'); |
@@ -19,2 +19,11 @@ /** | ||
export declare const parse: (url: string) => string; | ||
/** | ||
* This simply exports the `parse` function as the default export. | ||
* | ||
* ```ts | ||
* import shurley from 'jsr:@brn/shurley@1.0.8'; // or import shurley from 'https://deno.land/x/shurley@1.0.8/mod.ts'; | ||
* | ||
* const parsedUrl = shurley.parse('example.com'); // "https://example.com" | ||
* ``` | ||
*/ | ||
declare const _default: { | ||
@@ -21,0 +30,0 @@ parse: (url: string) => string; |
@@ -40,2 +40,11 @@ "use strict"; | ||
exports.parse = parse; | ||
/** | ||
* This simply exports the `parse` function as the default export. | ||
* | ||
* ```ts | ||
* import shurley from 'jsr:@brn/shurley@1.0.8'; // or import shurley from 'https://deno.land/x/shurley@1.0.8/mod.ts'; | ||
* | ||
* const parsedUrl = shurley.parse('example.com'); // "https://example.com" | ||
* ``` | ||
*/ | ||
exports.default = { parse: exports.parse }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37284
156