Comparing version 1.0.2 to 1.0.3
@@ -7,2 +7,12 @@ "use strict"; | ||
constructor(data, namespace) { | ||
Object.defineProperties(this, { | ||
data: { | ||
enumerable: false, | ||
writable: true, | ||
}, | ||
universes: { | ||
enumerable: false, | ||
writable: true, | ||
} | ||
}); | ||
const parsed = this.parseData(data, namespace); | ||
@@ -9,0 +19,0 @@ this.data = () => parsed.data; |
@@ -8,2 +8,6 @@ "use strict"; | ||
super(data, "items"); | ||
this.any = this.any.bind(this); | ||
this.weapon = this.weapon.bind(this); | ||
this.tool = this.tool.bind(this); | ||
this.vehicle = this.vehicle.bind(this); | ||
} | ||
@@ -10,0 +14,0 @@ weapon(ctx) { |
@@ -8,2 +8,5 @@ "use strict"; | ||
super(data, "names"); | ||
this.first = this.first.bind(this); | ||
this.last = this.last.bind(this); | ||
this.full = this.full.bind(this); | ||
} | ||
@@ -10,0 +13,0 @@ first(ctx) { |
@@ -8,2 +8,5 @@ "use strict"; | ||
super(data, "places"); | ||
this.city = this.city.bind(this); | ||
this.planet = this.planet.bind(this); | ||
this.any = this.any.bind(this); | ||
} | ||
@@ -10,0 +13,0 @@ city(ctx) { |
@@ -10,2 +10,8 @@ "use strict"; | ||
this._defaultParagraphLength = 3; | ||
Object.defineProperty(this, '_defaultParagraphLength', { | ||
enumerable: false, | ||
writable: true, | ||
}); | ||
this.sentence = this.sentence.bind(this); | ||
this.paragraph = this.paragraph.bind(this); | ||
} | ||
@@ -12,0 +18,0 @@ sentence(ctx, opts = {}) { |
@@ -8,2 +8,5 @@ "use strict"; | ||
super(data, "species"); | ||
this.any = this.any.bind(this); | ||
this.sentient = this.sentient.bind(this); | ||
this.nonsentient = this.nonsentient.bind(this); | ||
} | ||
@@ -10,0 +13,0 @@ sentient(ctx) { |
@@ -21,2 +21,16 @@ "use strict"; | ||
this.quote = new Quote_1.Quote([]); | ||
Object.defineProperties(this, { | ||
_allUniverses: { | ||
enumerable: false, | ||
writable: true, | ||
}, | ||
_universes: { | ||
enumerable: false, | ||
writable: true, | ||
}, | ||
_data: { | ||
enumerable: false, | ||
writable: true, | ||
} | ||
}); | ||
const allUniverses = fs_1.readdirSync(dataDir) | ||
@@ -23,0 +37,0 @@ .filter(item => path.extname(item) === ".json") |
{ | ||
"name": "nerdata", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "testdata for the fantasy/scifi enthusiast", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
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
Sorry, the diff of this file is not supported yet
48698
1328