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

uri-template-lite

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uri-template-lite - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

index.js

@@ -5,4 +5,4 @@

/*
* @version 0.1.1
* @date 2014-01-14
* @version 0.1.2
* @date 2014-01-20
* @stability 2 - Unstable

@@ -24,6 +24,3 @@ * @author Lauri Rooden <lauri@rooden.ee>

function encodeNormal(val) {
return encodeURIComponent(val).replace(RESERVED, function(s) {
// Do not apply a non-standard second argument for escape in FF3-4.
return escape(s)
});
return encodeURIComponent(val).replace(RESERVED, escape)
}

@@ -30,0 +27,0 @@

{
"name": "uri-template-lite",
"version": "0.1.1",
"version": "0.1.2",
"stability": 2,

@@ -30,3 +30,3 @@ "license": "MIT",

"testman": "*",
"browser-upgrade-lite": "*"
"browser-upgrade-lite": ">=0.1.6"
},

@@ -33,0 +33,0 @@ "buildman": {

@@ -11,4 +11,4 @@ [1]: https://secure.travis-ci.org/litejs/uri-template-lite.png

@version 0.1.1
@date 2014-01-14
@version 0.1.2
@date 2014-01-20
@stability 2 - Unstable

@@ -15,0 +15,0 @@

@@ -1,2 +0,2 @@

!function(k){function n(a){return encodeURIComponent(a).replace(p,function(a){return escape(a)})}function q(a,f,l){return a+(f||"&"==l?"=":"")+f}function m(a,f,l){a=a.map(f).filter(function(a){return"string"==typeof a});return a.length&&a.join(l)}var p=/[\]\[:\/?#@!$&()*+,;=']/g,r=/\{([+#.\/;?&]?)((?:[\w%.]+(\*|:\d)?,?)+)\}/g,s={"":",","+":",","#":",","?":"&"};k.expand=function(a,f){return a.replace(r,function(a,b,k){var d=s[b]||b,h=b&&","==d?encodeURI:n,g=(";"==d||"&"==d)&&q;return(a=m(k.split(","),
function(a){var b=a!=(a=a.split("*")[0]),e=!b&&(e=a.split(":"),a=e[0],e[1]),c=f[a];if(null!=c){if("object"==typeof c){if(Array.isArray(c)?c=m(c,h,b?g?d+a+"=":d:","):(e=b?"=":",",c=m(Object.keys(c),function(a){return h(a)+e+h(c[a])},b&&(g||"/"==d)?d:","),b&&(g=null)),!c)return}else c=h(e?c.slice(0,e):c);return g?g(a,c,d):c}},d))?"+"!=b?b+a:a:""!==a||"#"!=b&&"."!=b?"":b})}}(this.URI||(this.URI={}));
!function(k){function n(a){return encodeURIComponent(a).replace(p,escape)}function q(a,f,l){return a+(f||"&"==l?"=":"")+f}function m(a,f,l){a=a.map(f).filter(function(a){return"string"==typeof a});return a.length&&a.join(l)}var p=/[\]\[:\/?#@!$&()*+,;=']/g,r=/\{([+#.\/;?&]?)((?:[\w%.]+(\*|:\d)?,?)+)\}/g,s={"":",","+":",","#":",","?":"&"};k.expand=function(a,f){return a.replace(r,function(a,b,k){var d=s[b]||b,h=b&&","==d?encodeURI:n,g=(";"==d||"&"==d)&&q;return(a=m(k.split(","),function(a){var b=a!=
(a=a.split("*")[0]),e=!b&&(e=a.split(":"),a=e[0],e[1]),c=f[a];if(null!=c){if("object"==typeof c){if(Array.isArray(c)?c=m(c,h,b?g?d+a+"=":d:","):(e=b?"=":",",c=m(Object.keys(c),function(a){return h(a)+e+h(c[a])},b&&(g||"/"==d)?d:","),b&&(g=null)),!c)return}else c=h(e?c.slice(0,e):c);return g?g(a,c,d):c}},d))?"+"!=b?b+a:a:""!==a||"#"!=b&&"."!=b?"":b})}}(this.URI||(this.URI={}));
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