🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@types/url-assembler

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/url-assembler - npm Package Compare versions

Comparing version

to
2.1.0

9

url-assembler/index.d.ts

@@ -1,5 +0,7 @@

// Type definitions for url-assembler 1.2
// Type definitions for url-assembler 2.1
// Project: https://github.com/Floby/node-url-assembler
// Definitions by: Wolfgang Faust <https://github.com/wolfgang42>
// Alice Pote <https://github.com/alicewriteswrongs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as qs from 'qs';

@@ -11,8 +13,9 @@ interface UrlAssembler {

param(key: string, value: string, strict?: boolean): UrlAssembler;
param(params: {[s: string]: any}, strict?: boolean): UrlAssembler;
param(params: { [s: string]: any }, strict?: boolean): UrlAssembler;
query(key: string, value: any): UrlAssembler;
query(params: {[s: string]: any}): UrlAssembler;
query(params: { [s: string]: any }): UrlAssembler;
toString(): string;
valueOf(): string;
toJSON(): string;
qsConfig(config: qs.IStringifyOptions): UrlAssembler;
}

@@ -19,0 +22,0 @@

{
"name": "@types/url-assembler",
"version": "1.2.2",
"version": "2.1.0",
"description": "TypeScript definitions for url-assembler",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-assembler",
"license": "MIT",

@@ -11,2 +12,7 @@ "contributors": [

"githubUsername": "wolfgang42"
},
{
"name": "Alice Pote",
"url": "https://github.com/alicewriteswrongs",
"githubUsername": "alicewriteswrongs"
}

@@ -22,5 +28,7 @@ ],

"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "a68788b83020651f9ea8b17de24e468f45c65eb6dba4f9374a715590bebd9845",
"typeScriptVersion": "3.0"
"dependencies": {
"@types/qs": "*"
},
"typesPublisherContentHash": "5446757d4c60f58a383a33a3e3d380f6c244d71278651772a702319816131990",
"typeScriptVersion": "3.7"
}

@@ -9,9 +9,44 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-assembler.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-assembler/index.d.ts)
````ts
// Type definitions for url-assembler 2.1
// Project: https://github.com/Floby/node-url-assembler
// Definitions by: Wolfgang Faust <https://github.com/wolfgang42>
// Alice Pote <https://github.com/alicewriteswrongs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as qs from 'qs';
interface UrlAssembler {
template(template: string): UrlAssembler;
prefix(subPath: string): UrlAssembler;
segment(subPathTemplate: string): UrlAssembler;
param(key: string, value: string, strict?: boolean): UrlAssembler;
param(params: { [s: string]: any }, strict?: boolean): UrlAssembler;
query(key: string, value: any): UrlAssembler;
query(params: { [s: string]: any }): UrlAssembler;
toString(): string;
valueOf(): string;
toJSON(): string;
qsConfig(config: qs.IStringifyOptions): UrlAssembler;
}
interface UrlAssemblerConstructor {
(baseUrl?: string): UrlAssembler;
(urlAssembler: UrlAssembler): UrlAssembler;
new (baseUrl?: string): UrlAssembler;
new (urlAssembler: UrlAssembler): UrlAssembler;
}
declare const UrlAssembler: UrlAssemblerConstructor;
export = UrlAssembler;
````
### Additional Details
* Last updated: Fri, 15 May 2020 13:12:51 GMT
* Dependencies: none
* Last updated: Mon, 04 Oct 2021 02:31:24 GMT
* Dependencies: [@types/qs](https://npmjs.com/package/@types/qs)
* Global values: none
# Credits
These definitions were written by [Wolfgang Faust](https://github.com/wolfgang42).
These definitions were written by [Wolfgang Faust](https://github.com/wolfgang42), and [Alice Pote](https://github.com/alicewriteswrongs).