New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

url-factory

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-factory - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

2

package.json

@@ -7,3 +7,3 @@ {

],
"version": "1.4.2",
"version": "1.4.3",
"description": "Set a base url and encode params with minimum fuss. Especially useful with JSON API.",

@@ -10,0 +10,0 @@ "main": "lib/index.js",

@@ -26,3 +26,3 @@ ###Getting started:

const url = fooUrl('users/1234', params)
// => 'https://foo.com/users/1234?related=[4566,7489]&filter[foo]=bar&apiVersion=1.0'
// => 'https://foo.com/users/1234?relatedUsers=4566,7489&filter[foo]=bar&apiVersion=1.0'
fetch(url)

@@ -53,3 +53,3 @@ ```

const url = jsonApiUrl('users/1234', params)
// => 'https://api.foo.com/users/1234?include=[posts]&fields[user]=full_name&json_api_version=1.0'
// => 'https://api.foo.com/users/1234?include=posts&fields[user]=full_name&json_api_version=1.0'
fetch(url)

@@ -56,0 +56,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc