Comparing version 0.1.0 to 0.1.1
@@ -11,8 +11,9 @@ var methodify = require("methodify"); | ||
while (i--) { | ||
mix.one(functions, arguments[i].methods); | ||
mix.one(functions, arguments[i].methods); | ||
} | ||
i = undefined; | ||
constructor.With = constructWith; | ||
constructor.methods = functions; | ||
constructor.from = constructFrom; | ||
constructor.isAStruct = true; | ||
@@ -28,3 +29,3 @@ | ||
function constructFrom () { | ||
function constructWith () { | ||
var mixwith = Array.prototype.slice.call(arguments, 0, -1); | ||
@@ -31,0 +32,0 @@ var object = arguments[arguments.length - 1]; |
{ | ||
"name": "new-struct", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Structs inspired from Golang", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -30,3 +30,3 @@ ## new-struct | ||
Check out [Usage](#usage) for more info about it. | ||
Check out [Usage](#usage) and examples for more info about it. | ||
@@ -33,0 +33,0 @@ ## Install |
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
4583