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

@haventech/supertype

Package Overview
Dependencies
Maintainers
5
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haventech/supertype - npm Package Compare versions

Comparing version 6.0.0-beta.0 to 6.0.0-beta.1

src/actual.json

2

dist/Supertype.d.ts

@@ -30,3 +30,3 @@ import { ObjectTemplate } from './ObjectTemplate';

amorphicClass: any;
constructor(objectTemplate?: typeof ObjectTemplate);
constructor(objectTemplate?: typeof ObjectTemplate, proto?: any);
amorphicToJSON(cb?: any): string;

@@ -33,0 +33,0 @@ amorphicGetPropertyDefinition(prop: any): any;

@@ -13,3 +13,6 @@ "use strict";

class Supertype {
constructor(objectTemplate = ObjectTemplate_1.ObjectTemplate) {
constructor(objectTemplate = ObjectTemplate_1.ObjectTemplate, proto) {
if (proto) {
Object.setPrototypeOf(this, proto);
}
var template = this.__template__;

@@ -109,2 +112,2 @@ if (!template) {

exports.Supertype = Supertype;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3VwZXJ0eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1N1cGVydHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxREFBZ0Q7QUFDaEQsMkNBQTJDO0FBSzNDOzs7OztHQUtHO0FBRUgsTUFBYSxTQUFTO0lBZ0RsQixZQUFZLGNBQWMsR0FBRywrQkFBYztRQUN2QyxJQUFJLFFBQVEsR0FBRyxJQUFJLENBQUMsWUFBWSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxRQUFRLEVBQUU7WUFDWCxNQUFNLElBQUksS0FBSyxDQUFDLCtCQUFjLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLENBQUMsV0FBVyxDQUFDLEdBQU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ldHVybiB0aGlzLmFtb3JwaGljVG9KU09OKGNiKVxuICAgIH1cbn0iXX0=
{
"name": "@haventech/supertype",
"description": "A type system for classical inheritence, mix-ins and composition.",
"version": "6.0.0-beta.0",
"version": "6.0.0-beta.1",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "types": "dist/index.d.ts",

@@ -62,3 +62,6 @@ import {ObjectTemplate} from './ObjectTemplate';

constructor(objectTemplate = ObjectTemplate) {
constructor(objectTemplate = ObjectTemplate, proto?: any) {
if (proto) {
Object.setPrototypeOf(this, proto);
}
var template = this.__template__;

@@ -65,0 +68,0 @@ if (!template) {

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