Comparing version 0.1.3 to 0.1.4
@@ -112,2 +112,6 @@ declare module "adts" { | ||
/** | ||
Returns the contents of the stack, from bottom to top. | ||
*/ | ||
getElements(): T[]; | ||
/** | ||
Return the size (length) of the stack. | ||
@@ -114,0 +118,0 @@ */ |
@@ -191,2 +191,3 @@ /** | ||
var prototype_set = sets[0]; | ||
// use a for loop to allow immediate return | ||
for (var i = 1, other; (other = sets[i]) !== undefined; i++) { | ||
@@ -263,2 +264,8 @@ var prototype_other_equal = keysEqual(prototype_set._element_object, other._element_object); | ||
} | ||
/** | ||
Returns the contents of the stack, from bottom to top. | ||
*/ | ||
Stack.prototype.getElements = function () { | ||
return this.elements; | ||
}; | ||
Object.defineProperty(Stack.prototype, "size", { | ||
@@ -265,0 +272,0 @@ /** |
@@ -290,2 +290,8 @@ /** | ||
/** | ||
Returns the contents of the stack, from bottom to top. | ||
*/ | ||
getElements(): T[] { | ||
return this.elements; | ||
} | ||
/** | ||
Return the size (length) of the stack. | ||
@@ -292,0 +298,0 @@ */ |
{ | ||
"name": "adts", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Abstract Data Types in TypeScript", | ||
@@ -24,9 +24,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"TypeScript": "1.3.0", | ||
"mocha": "~2.1.0" | ||
"TypeScript": "*", | ||
"mocha": "*" | ||
}, | ||
"scripts": { | ||
"prepublish": "make", | ||
"test": "mocha test" | ||
} | ||
} |
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
58364
861