Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nomics

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nomics - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

dist/utils/url.js

@@ -6,3 +6,3 @@ "use strict";

.reduce(function (acc, k) {
return obj[k] != null ? acc.concat([k + "=" + obj[k]]) : acc;
return obj[k] != null ? acc.concat([k + "=" + encodeURIComponent(obj[k])]) : acc;
}, [])

@@ -9,0 +9,0 @@ .join("&");

{
"name": "nomics",
"version": "0.2.0",
"version": "0.2.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -24,1 +24,9 @@ import { objToUrlParams } from "./url";

});
test("encodes url values", () => {
expect(
objToUrlParams({
test: "tS+o&"
})
).toBe("test=tS%2Bo%26");
});

@@ -5,5 +5,5 @@ export const objToUrlParams = (obj: any): string =>

(acc: string[], k: string): string[] =>
obj[k] != null ? [...acc, `${k}=${obj[k]}`] : acc,
obj[k] != null ? [...acc, `${k}=${encodeURIComponent(obj[k])}`] : acc,
[]
)
.join("&");

Sorry, the diff of this file is not supported yet

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