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

cruddle

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cruddle - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 0.1.2
* Fix missing module export
* Fix missing error handles for other components
# 0.1.1

@@ -2,0 +7,0 @@

@@ -0,1 +1,2 @@

import { EventEmitter } from '@angular/core';
import { DeleteDefinition } from '../definitions/delete';

@@ -10,2 +11,6 @@ /**

data: any;
/** Emits errors during deleting the instance. */
error: EventEmitter<{}>;
/** Proceed with deleting the instance. */
delete(): void;
}

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

function DeleteComponent() {
/** Emits errors during deleting the instance. */
this.error = new core_1.EventEmitter();
}
/** Proceed with deleting the instance. */
DeleteComponent.prototype.delete = function () {
var self = this;
this.def.delete(this.data)
.catch(function (err) {
self.error.emit(err);
});
};
return DeleteComponent;

@@ -29,2 +39,6 @@ }());

], DeleteComponent.prototype, "data", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", Object)
], DeleteComponent.prototype, "error", void 0);
DeleteComponent = __decorate([

@@ -31,0 +45,0 @@ core_1.Component({

2

dist/components/delete.metadata.json

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"DeleteComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-delete","template":"\n <div class=\"cruddle-delete\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"DeleteComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-delete","template":"\n <div class=\"cruddle-delete\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"DeleteComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-delete","template":"\n <div class=\"cruddle-delete\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"delete":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DeleteComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-delete","template":"\n <div class=\"cruddle-delete\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"delete":[{"__symbolic":"method"}]}}}}]

@@ -0,1 +1,2 @@

import { EventEmitter } from '@angular/core';
import { FormDefinition } from '../definitions/form';

@@ -13,2 +14,9 @@ /**

data: any;
/** Emits errors during saving the instance. */
error: EventEmitter<{}>;
/**
* Save the model instance. This should do any validation necessary and
* create or instance the model depending on whether the instance already existed.
*/
save(): void;
}

@@ -17,3 +17,16 @@ "use strict";

function FormComponent() {
/** Emits errors during saving the instance. */
this.error = new core_1.EventEmitter();
}
/**
* Save the model instance. This should do any validation necessary and
* create or instance the model depending on whether the instance already existed.
*/
FormComponent.prototype.save = function () {
var self = this;
this.def.save(this.data)
.catch(function (err) {
self.error.emit(err);
});
};
return FormComponent;

@@ -29,2 +42,6 @@ }());

], FormComponent.prototype, "data", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", Object)
], FormComponent.prototype, "error", void 0);
FormComponent = __decorate([

@@ -31,0 +48,0 @@ core_1.Component({

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"FormComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-form","template":"\n <div class=\"cruddle-form\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"FormComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-form","template":"\n <div class=\"cruddle-form\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"FormComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-form","template":"\n <div class=\"cruddle-form\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"save":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FormComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cruddle-form","template":"\n <div class=\"cruddle-form\">\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"def":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"save":[{"__symbolic":"method"}]}}}}]
export * from './components';
export * from './definitions';
export * from './helpers';
export * from './module';

@@ -8,2 +8,3 @@ "use strict";

__export(require("./helpers"));
__export(require("./module"));
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./components"},{"from":"./definitions"},{"from":"./helpers"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./components"},{"from":"./definitions"},{"from":"./helpers"}]}]
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./components"},{"from":"./definitions"},{"from":"./helpers"},{"from":"./module"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./components"},{"from":"./definitions"},{"from":"./helpers"},{"from":"./module"}]}]
{
"name": "cruddle",
"version": "0.1.1",
"version": "0.1.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/creativecuriositystudio/cruddle/issues",

@@ -23,2 +23,3 @@ /**

/*private*/ _expr_1:any;
subscription0:any;
constructor() {

@@ -33,2 +34,3 @@ this._changed = false;

ngOnDestroy():void {
(this.subscription0 && this.subscription0.unsubscribe());
}

@@ -60,4 +62,5 @@ check_def(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {

}
subscribe(view:import2.AppView<any>,_eventHandler:any):void {
subscribe(view:import2.AppView<any>,_eventHandler:any,emit0:boolean):void {
this._eventHandler = _eventHandler;
if (emit0) { (this.subscription0 = this.context.error.subscribe(_eventHandler.bind(view,'error'))); }
}

@@ -91,2 +94,3 @@ }

this.compView_0.destroy();
this._DeleteComponent_0_3.ngOnDestroy();
}

@@ -93,0 +97,0 @@ visitRootNodesInternal(cb:any,ctx:any):void {

@@ -1,1 +0,1 @@

{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]},"isComponent":true,"selector":"cruddle-delete","inputs":{"def":"def","data":"data"},"outputs":{},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":["*"],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"DeleteComponent","filePath":"/home/zack/dev/cruddle/src/components/delete.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]},"isComponent":true,"selector":"cruddle-delete","inputs":{"def":"def","data":"data"},"outputs":{"error":"error"},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":["*"],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"DeleteComponent","filePath":"/home/zack/dev/cruddle/src/components/delete.d.ts"}]}

@@ -1,2 +0,2 @@

import { Component, Input } from '@angular/core';
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { Model } from 'modelsafe';

@@ -23,2 +23,15 @@

@Input() data: any;
/** Emits errors during deleting the instance. */
@Output() error = new EventEmitter();
/** Proceed with deleting the instance. */
delete() {
let self = this;
this.def.delete(this.data)
.catch(err => {
self.error.emit(err);
});
}
}

@@ -23,2 +23,3 @@ /**

/*private*/ _expr_1:any;
subscription0:any;
constructor() {

@@ -33,2 +34,3 @@ this._changed = false;

ngOnDestroy():void {
(this.subscription0 && this.subscription0.unsubscribe());
}

@@ -60,4 +62,5 @@ check_def(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {

}
subscribe(view:import2.AppView<any>,_eventHandler:any):void {
subscribe(view:import2.AppView<any>,_eventHandler:any,emit0:boolean):void {
this._eventHandler = _eventHandler;
if (emit0) { (this.subscription0 = this.context.error.subscribe(_eventHandler.bind(view,'error'))); }
}

@@ -91,2 +94,3 @@ }

this.compView_0.destroy();
this._FormComponent_0_3.ngOnDestroy();
}

@@ -93,0 +97,0 @@ visitRootNodesInternal(cb:any,ctx:any):void {

@@ -1,1 +0,1 @@

{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]},"isComponent":true,"selector":"cruddle-form","inputs":{"def":"def","data":"data"},"outputs":{},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":["*"],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"FormComponent","filePath":"/home/zack/dev/cruddle/src/components/form.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[],"lifecycleHooks":[]},"isComponent":true,"selector":"cruddle-form","inputs":{"def":"def","data":"data"},"outputs":{"error":"error"},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":["*"],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"FormComponent","filePath":"/home/zack/dev/cruddle/src/components/form.d.ts"}]}

@@ -1,2 +0,2 @@

import { Component, Input } from '@angular/core';
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { Model } from 'modelsafe';

@@ -26,2 +26,18 @@

@Input() data: any;
/** Emits errors during saving the instance. */
@Output() error = new EventEmitter();
/**
* Save the model instance. This should do any validation necessary and
* create or instance the model depending on whether the instance already existed.
*/
save() {
let self = this;
this.def.save(this.data)
.catch(err => {
self.error.emit(err);
});
}
}

@@ -1,1 +0,1 @@

{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbol":1}},{"symbol":{"__symbol":2},"metadata":{"__symbol":3}},{"symbol":{"__symbol":4},"metadata":{"__symbol":5}},{"symbol":{"__symbol":6},"metadata":{"__symbol":7}},{"symbol":{"__symbol":8},"metadata":{"__symbol":9}},{"symbol":{"__symbol":10},"metadata":{"__symbol":11}}],"symbols":[{"__symbol":0,"name":"DeleteComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":1,"name":"DeleteComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":2,"name":"FormComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":3,"name":"FormComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":4,"name":"ListComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":5,"name":"ListComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":6,"name":"ReadComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":7,"name":"ReadComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":8,"name":"SortOrder","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":9,"name":"SortOrder","filePath":"/home/zack/dev/cruddle/src/definitions/index.d.ts"},{"__symbol":10,"name":"Definitions","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":11,"name":"Definitions","filePath":"/home/zack/dev/cruddle/src/helpers.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbol":1}},{"symbol":{"__symbol":2},"metadata":{"__symbol":3}},{"symbol":{"__symbol":4},"metadata":{"__symbol":5}},{"symbol":{"__symbol":6},"metadata":{"__symbol":7}},{"symbol":{"__symbol":8},"metadata":{"__symbol":9}},{"symbol":{"__symbol":10},"metadata":{"__symbol":11}},{"symbol":{"__symbol":12},"metadata":{"__symbol":13}}],"symbols":[{"__symbol":0,"name":"DeleteComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":1,"name":"DeleteComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":2,"name":"FormComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":3,"name":"FormComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":4,"name":"ListComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":5,"name":"ListComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":6,"name":"ReadComponent","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":7,"name":"ReadComponent","filePath":"/home/zack/dev/cruddle/src/components/index.d.ts"},{"__symbol":8,"name":"SortOrder","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":9,"name":"SortOrder","filePath":"/home/zack/dev/cruddle/src/definitions/index.d.ts"},{"__symbol":10,"name":"Definitions","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":11,"name":"Definitions","filePath":"/home/zack/dev/cruddle/src/helpers.d.ts"},{"__symbol":12,"name":"CruddleModule","filePath":"/home/zack/dev/cruddle/src/index.d.ts"},{"__symbol":13,"name":"CruddleModule","filePath":"/home/zack/dev/cruddle/src/module.d.ts"}]}
export * from './components';
export * from './definitions';
export * from './helpers';
export * from './module';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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