Comparing version 1.0.2 to 1.0.3
@@ -13,8 +13,8 @@ @module {function} can-param can-param | ||
```js | ||
var param = require("can-param"); | ||
import param from "can-param"; | ||
param({foo: "bar"}) //-> "foo=bar" | ||
param({foo: ["bar", "baz"]}) //-> "foo[]=bar&foo[]=baz" | ||
param({foo: {bar: "baz"}}) //-> "foo[bar]=baz" | ||
param({foo: "bar & baz"}) //-> "foo=bar+%26+baz" | ||
param( { foo: "bar" } ); //-> "foo=bar" | ||
param( { foo: [ "bar", "baz" ] } ); //-> "foo[]=bar&foo[]=baz" | ||
param( { foo: { bar: "baz" } } ); //-> "foo[bar]=baz" | ||
param( { foo: "bar & baz" } ); //-> "foo=bar+%26+baz" | ||
``` | ||
@@ -21,0 +21,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*can-param@1.0.1#can-param*/ | ||
/*can-param@1.0.2#can-param*/ | ||
define([ | ||
@@ -3,0 +3,0 @@ 'require', |
@@ -1,2 +0,2 @@ | ||
/*can-param@1.0.1#can-param*/ | ||
/*can-param@1.0.2#can-param*/ | ||
var namespace = require('can-namespace'); | ||
@@ -3,0 +3,0 @@ function buildParam(prefix, obj, add) { |
@@ -130,3 +130,3 @@ /*[global-shim-start]*/ | ||
/*can-param@1.0.1#can-param*/ | ||
/*can-param@1.0.2#can-param*/ | ||
define('can-param', [ | ||
@@ -133,0 +133,0 @@ 'require', |
{ | ||
"name": "can-param", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Serialize an array or object into a query string.", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18072
17