pico-framework
Advanced tools
Comparing version 0.4.1 to 0.4.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cleanChannelTags = exports.cleanQueryPolicy = exports.cleanEventPolicy = exports.assertQueryPolicy = exports.assertEventPolicy = exports.Channel = void 0; | ||
const _ = require("lodash"); | ||
@@ -4,0 +5,0 @@ const utils_1 = require("./utils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.dbRange = void 0; | ||
const _ = require("lodash"); | ||
@@ -4,0 +5,0 @@ function dbRange(ldb, opts, onData) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cleanChannelTags = exports.PicoFramework = void 0; | ||
const Channel_1 = require("./Channel"); | ||
exports.cleanChannelTags = Channel_1.cleanChannelTags; | ||
Object.defineProperty(exports, "cleanChannelTags", { enumerable: true, get: function () { return Channel_1.cleanChannelTags; } }); | ||
const PicoFramework_1 = require("./PicoFramework"); | ||
exports.PicoFramework = PicoFramework_1.PicoFramework; | ||
Object.defineProperty(exports, "PicoFramework", { enumerable: true, get: function () { return PicoFramework_1.PicoFramework; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Pico = void 0; | ||
const _ = require("lodash"); | ||
@@ -292,3 +293,9 @@ const Channel_1 = require("./Channel"); | ||
this.assertInstalled(rid); | ||
await this.pf.db.put(["entvar", this.id, rid, name], value); | ||
const key = ["entvar", this.id, rid, name]; | ||
if (value === null || value === undefined) { | ||
await this.pf.db.del(key); | ||
} | ||
else { | ||
await this.pf.db.put(key, value); | ||
} | ||
} | ||
@@ -295,0 +302,0 @@ async delEnt(rid, name) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cleanEvent = void 0; | ||
const utils_1 = require("./utils"); | ||
@@ -4,0 +5,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PicoFramework = void 0; | ||
const cuid = require("cuid"); | ||
@@ -4,0 +5,0 @@ const levelup_1 = require("levelup"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cleanQuery = void 0; | ||
const utils_1 = require("./utils"); | ||
@@ -4,0 +5,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PicoQueue = void 0; | ||
class PicoQueue { | ||
@@ -4,0 +5,0 @@ constructor(picoId, worker, emit) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createRulesetContext = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * This is a constructor function to be sure that we don't leak things that a ruleset should not have access to. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isNotStringOrBlank = void 0; | ||
function isNotStringOrBlank(val) { | ||
@@ -4,0 +5,0 @@ return typeof val !== "string" || val.trim().length === 0; |
{ | ||
"name": "pico-framework", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "A framework for building actor-based, people-centric systems. (pico = PersIstent Compute Objects)", | ||
@@ -45,4 +45,4 @@ "repository": { | ||
"level-json-coerce-null": "^1.0.1", | ||
"levelup": "^4.3.2", | ||
"lodash": "^4.17.14", | ||
"levelup": "^4.4.0", | ||
"lodash": "^4.17.19", | ||
"memdown": "^5.1.0", | ||
@@ -54,8 +54,8 @@ "select-when": "^0.1.4" | ||
"@types/levelup": "^4.3.0", | ||
"@types/lodash": "^4.14.149", | ||
"ava": "^3.5.1", | ||
"codecov": "^3.6.5", | ||
"nyc": "^15.0.0", | ||
"ts-node": "^8.8.1", | ||
"typescript": "^3.8.3" | ||
"@types/lodash": "^4.14.157", | ||
"ava": "^3.10.1", | ||
"codecov": "^3.7.1", | ||
"nyc": "^15.1.0", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.7" | ||
}, | ||
@@ -62,0 +62,0 @@ "ava": { |
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
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
90597
1547
Updatedlevelup@^4.4.0
Updatedlodash@^4.17.19