@octopusdeploy/ocl
Advanced tools
Comparing version 0.0.3 to 0.0.4
# Changelog | ||
### [0.0.4](https://www.github.com/OctopusDeploy/ocl.ts/compare/v0.0.3...v0.0.4) (2021-10-22) | ||
### Bug Fixes | ||
* fixed typo (labels) ([e41313a](https://www.github.com/OctopusDeploy/ocl.ts/commit/e41313aabef0c87155596d1fb6295017325550d0)) | ||
### [0.0.3](https://www.github.com/OctopusDeploy/ocl.ts/compare/v0.0.2...v0.0.3) (2021-10-22) | ||
@@ -4,0 +11,0 @@ |
@@ -58,3 +58,3 @@ import type { Token } from "./token"; | ||
name: Token; | ||
lables?: LiteralNode[]; | ||
labels?: LiteralNode[]; | ||
blockStart: Token; | ||
@@ -61,0 +61,0 @@ block: AST; |
@@ -220,5 +220,5 @@ "use strict"; | ||
this.nextToken(); | ||
var lables = []; | ||
var labels = []; | ||
while (this.currentToken.tokenType === token_1.TokenType.STRING) { | ||
lables.push(this.handleLiteralNode(ast_1.LiteralType.STRING, false)); | ||
labels.push(this.handleLiteralNode(ast_1.LiteralType.STRING, false)); | ||
this.nextToken(); | ||
@@ -246,8 +246,8 @@ } | ||
}; | ||
if (lables.length > 0) { | ||
for (var _i = 0, lables_1 = lables; _i < lables_1.length; _i++) { | ||
var lable = lables_1[_i]; | ||
lable.parent = blockNode; | ||
if (labels.length > 0) { | ||
for (var _i = 0, labels_1 = labels; _i < labels_1.length; _i++) { | ||
var label = labels_1[_i]; | ||
label.parent = blockNode; | ||
} | ||
blockNode.lables = lables; | ||
blockNode.labels = labels; | ||
} | ||
@@ -254,0 +254,0 @@ for (var _a = 0, block_1 = block; _a < block_1.length; _a++) { |
@@ -44,3 +44,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "0.0.3" | ||
"version": "0.0.4" | ||
} |
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
41930