@std-uritemplate/std-uritemplate
Advanced tools
Comparing version 0.0.38 to 0.0.39
@@ -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: |
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
51602