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

new-struct

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

new-struct - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

index.js

@@ -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

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