@polymer/iron-location
Advanced tools
Comparing version 3.0.0-pre.10 to 3.0.0-pre.11
@@ -107,2 +107,15 @@ import '../polymer/polymer.js'; | ||
/** | ||
* A flag that specifies whether the spaces in query that would normally be encoded as %20 should be | ||
* encoded as +. | ||
* | ||
* Given an example text "hello world", it is encoded in query as | ||
* - "hello%20world" without the parameter | ||
* - "hello+world" with the parameter | ||
*/ | ||
encodeSpaceAsPlusInQuery: { | ||
type: Boolean, | ||
value: false | ||
}, | ||
/** | ||
* urlSpaceRegex, but coerced into a regexp. | ||
@@ -183,2 +196,5 @@ * | ||
partiallyEncodedQuery = '?' + this.query.replace(/\#/g, '%23'); | ||
if(this.encodeSpaceAsPlusInQuery) { | ||
partiallyEncodedQuery = partiallyEncodedQuery.replace(/\+/g, '%2B').replace(/ /g, '+').replace(/%20/g, '+'); | ||
} | ||
} | ||
@@ -185,0 +201,0 @@ var partiallyEncodedHash = ''; |
import '../polymer/polymer.js'; | ||
import { Polymer } from '../polymer/lib/legacy/polymer-fn.js'; | ||
/** | ||
@@ -14,4 +15,2 @@ @license | ||
*/ | ||
'use strict'; | ||
Polymer({ | ||
@@ -18,0 +17,0 @@ is: 'iron-query-params', |
{ | ||
"name": "@polymer/iron-location", | ||
"flat": true, | ||
"version": "3.0.0-pre.10", | ||
"description": "Bidirectional data binding into the page's URL.", | ||
"contributors": [ | ||
"The Polymer Authors" | ||
], | ||
"keywords": [ | ||
@@ -18,8 +12,8 @@ "web-components", | ||
}, | ||
"homepage": "https://github.com/PolymerElements/iron-location", | ||
"name": "@polymer/iron-location", | ||
"license": "BSD-3-Clause", | ||
"homepage": "https://github.com/PolymerElements/iron-location", | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0-pre.10" | ||
}, | ||
"devDependencies": { | ||
"@polymer/gen-typescript-declarations": "^1.2.0", | ||
"bower": "^1.8.0", | ||
"@polymer/iron-flex-layout": "^3.0.0-pre.10", | ||
@@ -33,2 +27,6 @@ "@polymer/iron-demo-helpers": "^3.0.0-pre.10", | ||
}, | ||
"scripts": { | ||
"update-types": "bower install && gen-typescript-declarations --deleteExisting --outDir ." | ||
}, | ||
"version": "3.0.0-pre.11", | ||
"resolutions": { | ||
@@ -39,3 +37,7 @@ "inherits": "2.0.3", | ||
"type-detect": "1.0.0" | ||
}, | ||
"author": "The Polymer Authors", | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0-pre.10" | ||
} | ||
} |
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
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
91592
20
732
9