Skip to content

Commit 609e965

Browse files
author
Steve Thompson
committed
added .npmignore file so lib/ will not be published
to npm. This should make PublicArray compatible with Angular, but will check again later.
1 parent e53024f commit 609e965

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib/
2+
.idea/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright 2018 by Steve Thompson
3+
Copyright 2019 by Steve Thompson
44

55

66
Permission is hereby granted, free of charge, to any person obtaining

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var PublicArray = /** @class */ (function (_super) {
5353
var dependencyClass = dependencyClasses[index];
5454
// @ts-ignore
5555
var modul = require(dependencyClass.path);
56-
_this["_" + property] = new modul[dependencyClass.name];
56+
_this["_" + property] = new modul[dependencyClass.name]();
5757
}
5858
_this["_" + property].data = _this.data;
5959
return _this["_" + property];

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class PublicArray extends PublicArrayContent {
7373
let dependencyClass = dependencyClasses[index];
7474
// @ts-ignore
7575
let modul = require(dependencyClass.path);
76-
this[`_${property}`] = new modul[dependencyClass.name];
76+
this[`_${property}`] = new modul[dependencyClass.name]();
7777
}
7878
this[`_${property}`].data = this.data;
7979
return this[`_${property}`];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@writetome51/public-array",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "A TypeScript/JavaScript class for general array manipulation",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)