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

@std-uritemplate/std-uritemplate

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@std-uritemplate/std-uritemplate - npm Package Compare versions

Comparing version 0.0.38 to 0.0.39

22

dist/index.js

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

Modifier[Modifier["PLUS"] = 1] = "PLUS";
Modifier[Modifier["DASH"] = 2] = "DASH";
Modifier[Modifier["HASH"] = 2] = "HASH";
Modifier[Modifier["DOT"] = 3] = "DOT";

@@ -14,3 +14,3 @@ Modifier[Modifier["SLASH"] = 4] = "SLASH";

Modifier[Modifier["QUESTION_MARK"] = 6] = "QUESTION_MARK";
Modifier[Modifier["AT"] = 7] = "AT";
Modifier[Modifier["AMP"] = 7] = "AMP";
})(Modifier || (Modifier = {}));

@@ -73,3 +73,3 @@ var SubstitutionType;

case '#':
return Modifier.DASH;
return Modifier.HASH;
case '.':

@@ -84,3 +84,3 @@ return Modifier.DOT;

case '&':
return Modifier.AT;
return Modifier.AMP;
default:

@@ -174,3 +174,3 @@ StdUriTemplate.validateLiteral(c, col);

switch (mod) {
case Modifier.DASH:
case Modifier.HASH:
result.push('#');

@@ -190,3 +190,3 @@ break;

break;
case Modifier.AT:
case Modifier.AMP:
result.push('&');

@@ -210,3 +210,3 @@ break;

case Modifier.QUESTION_MARK:
case Modifier.AT:
case Modifier.AMP:
result.push('&');

@@ -222,7 +222,7 @@ break;

case Modifier.PLUS:
case Modifier.DASH:
case Modifier.HASH:
StdUriTemplate.addExpandedValue(value, result, maxChar, false);
break;
case Modifier.QUESTION_MARK:
case Modifier.AT:
case Modifier.AMP:
result.push(`${token}=`);

@@ -248,7 +248,7 @@ StdUriTemplate.addExpandedValue(value, result, maxChar, true);

case Modifier.PLUS:
case Modifier.DASH:
case Modifier.HASH:
StdUriTemplate.addExpandedValue(value, result, maxChar, false);
break;
case Modifier.QUESTION_MARK:
case Modifier.AT:
case Modifier.AMP:
case Modifier.SEMICOLON:

@@ -255,0 +255,0 @@ case Modifier.DOT:

{
"name": "@std-uritemplate/std-uritemplate",
"version": "0.0.38",
"version": "0.0.39",
"description": "std-uritemplate implementation for TS/JS",

@@ -5,0 +5,0 @@ "scripts": {

@@ -6,3 +6,3 @@ type Substitutions = { [key: string]: any };

PLUS,
DASH,
HASH,
DOT,

@@ -12,3 +12,3 @@ SLASH,

QUESTION_MARK,
AT,
AMP,
}

@@ -73,3 +73,3 @@

case '#':
return Modifier.DASH;
return Modifier.HASH;
case '.':

@@ -84,3 +84,3 @@ return Modifier.DOT;

case '&':
return Modifier.AT;
return Modifier.AMP;
default:

@@ -188,3 +188,3 @@ StdUriTemplate.validateLiteral(c, col);

switch (mod) {
case Modifier.DASH:
case Modifier.HASH:
result.push('#');

@@ -204,3 +204,3 @@ break;

break;
case Modifier.AT:
case Modifier.AMP:
result.push('&');

@@ -225,3 +225,3 @@ break;

case Modifier.QUESTION_MARK:
case Modifier.AT:
case Modifier.AMP:
result.push('&');

@@ -238,7 +238,7 @@ break;

case Modifier.PLUS:
case Modifier.DASH:
case Modifier.HASH:
StdUriTemplate.addExpandedValue(value, result, maxChar, false);
break;
case Modifier.QUESTION_MARK:
case Modifier.AT:
case Modifier.AMP:
result.push(`${token}=`);

@@ -265,7 +265,7 @@ StdUriTemplate.addExpandedValue(value, result, maxChar, true);

case Modifier.PLUS:
case Modifier.DASH:
case Modifier.HASH:
StdUriTemplate.addExpandedValue(value, result, maxChar, false);
break;
case Modifier.QUESTION_MARK:
case Modifier.AT:
case Modifier.AMP:
case Modifier.SEMICOLON:

@@ -272,0 +272,0 @@ case Modifier.DOT:

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