Socket
Socket
Sign inDemoInstall

filenamify-url

Package Overview
Dependencies
7
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.1.1

8

index.d.ts

@@ -11,4 +11,4 @@ import {Options as FilenamifyOptions} from 'filenamify';

@param input - A URL to convert to a valid filename.
@returns A valid filename for `input`.
@param url - A URL to convert to a valid filename.
@returns A valid filename for `url`.

@@ -26,6 +26,6 @@ @example

*/
(input: string, options?: filenamifyUrl.Options): string;
(url: string, options?: filenamifyUrl.Options): string;
// TODO: Remove this for the next major release, refactor the whole definition to:
// declare function filenamifyUrl(input: string, options?: Options): string;
// declare function filenamifyUrl(url: string, options?: Options): string;
// export = filenamifyUrl;

@@ -32,0 +32,0 @@ default: typeof filenamifyUrl;

@@ -10,3 +10,3 @@ 'use strict';

return filenamify(humanizeUrl(string), options);
return filenamify(decodeURIComponent(humanizeUrl(string)), options);
};

@@ -13,0 +13,0 @@

{
"name": "filenamify-url",
"version": "2.1.0",
"version": "2.1.1",
"description": "Convert a URL to a valid filename",
"license": "MIT",
"repository": "sindresorhus/filenamify-url",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {

@@ -38,6 +39,6 @@ "name": "Sindre Sorhus",

"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
"ava": "^2.4.0",
"tsd": "^0.11.0",
"xo": "^0.25.3"
}
}

@@ -5,3 +5,2 @@ # filenamify-url [![Build Status](https://travis-ci.org/sindresorhus/filenamify-url.svg?branch=master)](https://travis-ci.org/sindresorhus/filenamify-url)

## Install

@@ -13,3 +12,2 @@

## Usage

@@ -27,10 +25,9 @@

## API
### filenamifyUrl(input, [options])
### filenamifyUrl(url, options?)
Accepts a URL and returns a valid filename.
#### input
#### url

@@ -43,9 +40,4 @@ Type: `string`

Type: `Object`
Type: `object`
See the [`filenamify` options](https://github.com/sindresorhus/filenamify#options).
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc