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.3.0 to 1.4.0

2

package.json

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

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

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

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

For example, at foo company, make a new file: `app/utils/fooUrl.js`
```
```js
import urlFactory from 'url-factory'

@@ -16,3 +16,3 @@

```
```js
import fetch from 'isomorphic-fetch'

@@ -34,3 +34,3 @@ import fooUrl from 'app/utils/fooUrl'

In `app/utils/json-api-url.js`:
```
```js
import urlFactory from 'url-factory'

@@ -44,3 +44,3 @@

```
```js
import fetch from 'isomorphic-fetch'

@@ -64,3 +64,3 @@ import jsonApiUrl from 'app/utils/json-api-url'

If you're just interested in the params encoding you can also import that helper by itself:
```
```js
import fetch from 'isomorphic-fetch'

@@ -67,0 +67,0 @@ import { encodeParams } from 'url-factory'

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