ipfs-unixfs-importer
Advanced tools
Comparing version 15.2.0 to 15.2.1
export const toPathComponents = (path = '') => { | ||
// split on / unless escaped with \ | ||
return (path | ||
.trim() | ||
.match(/([^\\/]|\\\/)+/g) ?? []) | ||
.filter(Boolean); | ||
return path.split(/(?<!\\)\//).filter(Boolean); | ||
}; | ||
//# sourceMappingURL=to-path-components.js.map |
{ | ||
"name": "ipfs-unixfs-importer", | ||
"version": "15.2.0", | ||
"version": "15.2.1", | ||
"description": "JavaScript implementation of the UnixFs importer used by IPFS", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
export const toPathComponents = (path: string = ''): string[] => { | ||
// split on / unless escaped with \ | ||
return (path | ||
.trim() | ||
.match(/([^\\/]|\\\/)+/g) ?? []) | ||
.filter(Boolean) | ||
return path.split(/(?<!\\)\//).filter(Boolean) | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
268743
3695