@platform/cell.schema
Advanced tools
Comparing version 0.5.102 to 0.5.103
@@ -5,6 +5,6 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./constants.error"), exports); | ||
tslib_1.__exportStar(require("./constants.pkg"), exports); | ||
(0, tslib_1.__exportStar)(require("./constants.error"), exports); | ||
(0, tslib_1.__exportStar)(require("./constants.pkg"), exports); | ||
exports.BUNDLE = { | ||
MANIFEST: { FILENAME: 'index.json' }, | ||
}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
name: '@platform/cell.schema', | ||
version: '0.5.102', | ||
version: '0.5.103', | ||
}; |
@@ -9,5 +9,5 @@ "use strict"; | ||
exports.t = t; | ||
tslib_1.__exportStar(require("./libs"), exports); | ||
tslib_1.__exportStar(require("./util"), exports); | ||
tslib_1.__exportStar(require("./Hash"), exports); | ||
(0, tslib_1.__exportStar)(require("./libs"), exports); | ||
(0, tslib_1.__exportStar)(require("./util"), exports); | ||
(0, tslib_1.__exportStar)(require("./Hash"), exports); | ||
exports.ERROR = constants.ERROR; |
@@ -7,5 +7,5 @@ "use strict"; | ||
Object.defineProperty(exports, "Subject", { enumerable: true, get: function () { return rxjs_1.Subject; } }); | ||
tslib_1.__exportStar(require("@platform/types"), exports); | ||
tslib_1.__exportStar(require("@platform/cell.types"), exports); | ||
tslib_1.__exportStar(require("@platform/fsdb.types"), exports); | ||
tslib_1.__exportStar(require("../types"), exports); | ||
(0, tslib_1.__exportStar)(require("@platform/types"), exports); | ||
(0, tslib_1.__exportStar)(require("@platform/cell.types"), exports); | ||
(0, tslib_1.__exportStar)(require("@platform/fsdb.types"), exports); | ||
(0, tslib_1.__exportStar)(require("../types"), exports); |
@@ -12,3 +12,3 @@ "use strict"; | ||
if (options === void 0) { options = {}; } | ||
return value === null ? true : exports.isUndefinedOrEmptyObject(value, options); | ||
return value === null ? true : (0, exports.isUndefinedOrEmptyObject)(value, options); | ||
}; | ||
@@ -18,3 +18,3 @@ exports.isNilOrEmptyObject = isNilOrEmptyObject; | ||
if (options === void 0) { options = {}; } | ||
return value === undefined ? true : exports.isEmptyObject(value, options); | ||
return value === undefined ? true : (0, exports.isEmptyObject)(value, options); | ||
}; | ||
@@ -21,0 +21,0 @@ exports.isUndefinedOrEmptyObject = isUndefinedOrEmptyObject; |
@@ -53,3 +53,3 @@ "use strict"; | ||
}; | ||
return tslib_1.__assign(tslib_1.__assign({}, res), { toString: toString }); | ||
return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, res), { toString: toString }); | ||
}, | ||
@@ -60,3 +60,3 @@ parse: function (linkKey, linkValue) { | ||
var toString = value.toString; | ||
return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, key), value), { toString: toString }); | ||
return (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, key), value), { toString: toString }); | ||
}, | ||
@@ -63,0 +63,0 @@ toList: function (links) { |
@@ -36,4 +36,4 @@ "use strict"; | ||
input = input.trim(); | ||
return common_1.isHttp(input) ? input : "file://" + input; | ||
return (0, common_1.isHttp)(input) ? input : "file://" + input; | ||
}, | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./FileSchema"), exports); | ||
tslib_1.__exportStar(require("./FileLinks"), exports); | ||
(0, tslib_1.__exportStar)(require("./FileSchema"), exports); | ||
(0, tslib_1.__exportStar)(require("./FileLinks"), exports); |
@@ -5,11 +5,11 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
tslib_1.__exportStar(require("./Schema"), exports); | ||
tslib_1.__exportStar(require("./Uri"), exports); | ||
tslib_1.__exportStar(require("./Url"), exports); | ||
tslib_1.__exportStar(require("./Links"), exports); | ||
tslib_1.__exportStar(require("./Ref"), exports); | ||
tslib_1.__exportStar(require("./Encoding"), exports); | ||
tslib_1.__exportStar(require("./Squash"), exports); | ||
tslib_1.__exportStar(require("./Manifest"), exports); | ||
(0, tslib_1.__exportStar)(require("./types"), exports); | ||
(0, tslib_1.__exportStar)(require("./Schema"), exports); | ||
(0, tslib_1.__exportStar)(require("./Uri"), exports); | ||
(0, tslib_1.__exportStar)(require("./Url"), exports); | ||
(0, tslib_1.__exportStar)(require("./Links"), exports); | ||
(0, tslib_1.__exportStar)(require("./Ref"), exports); | ||
(0, tslib_1.__exportStar)(require("./Encoding"), exports); | ||
(0, tslib_1.__exportStar)(require("./Squash"), exports); | ||
(0, tslib_1.__exportStar)(require("./Manifest"), exports); | ||
var common_1 = require("./common"); | ||
@@ -16,0 +16,0 @@ Object.defineProperty(exports, "ERROR", { enumerable: true, get: function () { return common_1.ERROR; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Links"), exports); | ||
(0, tslib_1.__exportStar)(require("./Links"), exports); |
@@ -92,3 +92,3 @@ "use strict"; | ||
var value = Links.parseValue(linkValue); | ||
return tslib_1.__assign(tslib_1.__assign({}, key), value); | ||
return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, key), value); | ||
}; | ||
@@ -95,0 +95,0 @@ Links.prototype.find = function (links) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("../types"), exports); | ||
(0, tslib_1.__exportStar)(require("../types"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./ManifestFetch"), exports); | ||
(0, tslib_1.__exportStar)(require("./ManifestFetch"), exports); |
@@ -10,5 +10,5 @@ "use strict"; | ||
var _a; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () { | ||
var path, urls, url, res, ok, status, json, _b, exists, files; | ||
return tslib_1.__generator(this, function (_c) { | ||
return (0, tslib_1.__generator)(this, function (_c) { | ||
switch (_c.label) { | ||
@@ -45,5 +45,5 @@ case 0: | ||
get: function () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () { | ||
var domain, cell, path; | ||
return tslib_1.__generator(this, function (_a) { | ||
return (0, tslib_1.__generator)(this, function (_a) { | ||
if (url.error) | ||
@@ -50,0 +50,0 @@ throw new Error("Cannot GET manifest. " + url.error); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./ManifestSource"), exports); | ||
(0, tslib_1.__exportStar)(require("./ManifestSource"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./ManifestUrl"), exports); | ||
(0, tslib_1.__exportStar)(require("./ManifestUrl"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./RefLinks"), exports); | ||
tslib_1.__exportStar(require("./RefSchema"), exports); | ||
(0, tslib_1.__exportStar)(require("./RefLinks"), exports); | ||
(0, tslib_1.__exportStar)(require("./RefSchema"), exports); |
@@ -36,3 +36,3 @@ "use strict"; | ||
}; | ||
return tslib_1.__assign(tslib_1.__assign({}, res), { toString: toString }); | ||
return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, res), { toString: toString }); | ||
}; | ||
@@ -43,3 +43,3 @@ RefLinks.parse = function (linkKey, linkValue) { | ||
var toString = value.toString; | ||
return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, key), value), { toString: toString }); | ||
return (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, key), value), { toString: toString }); | ||
}; | ||
@@ -46,0 +46,0 @@ RefLinks.toValue = function (uri, options) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Schema"), exports); | ||
(0, tslib_1.__exportStar)(require("./Schema"), exports); |
@@ -85,3 +85,3 @@ "use strict"; | ||
function NsSchema(args) { | ||
var id = args.id || common_1.cuid(); | ||
var id = args.id || (0, common_1.cuid)(); | ||
if (Uri_1.Uri.is.uri(id)) { | ||
@@ -186,3 +186,3 @@ var uri = Uri_1.Uri.parse(id); | ||
var parts = Uri_1.Uri.parse(uri); | ||
return tslib_1.__assign(tslib_1.__assign({}, parts), { path: path }); | ||
return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, parts), { path: path }); | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Squash"), exports); | ||
(0, tslib_1.__exportStar)(require("./Squash"), exports); |
@@ -12,8 +12,8 @@ "use strict"; | ||
if (options === void 0) { options = {}; } | ||
var empty = common_1.defaultValue(options.empty, undefined); | ||
var empty = (0, common_1.defaultValue)(options.empty, undefined); | ||
if (!cell) | ||
return empty; | ||
var res = tslib_1.__assign({}, cell); | ||
var res = (0, tslib_1.__assign)({}, cell); | ||
Object.keys(res) | ||
.filter(function (key) { return common_1.isUndefinedOrEmptyObject(res[key]); }) | ||
.filter(function (key) { return (0, common_1.isUndefinedOrEmptyObject)(res[key]); }) | ||
.forEach(function (key) { return delete res[key]; }); | ||
@@ -24,3 +24,3 @@ return exports.Squash.object(res, options); | ||
if (options === void 0) { options = {}; } | ||
var empty = common_1.defaultValue(options.empty, undefined); | ||
var empty = (0, common_1.defaultValue)(options.empty, undefined); | ||
if (!obj) { | ||
@@ -30,9 +30,9 @@ return empty; | ||
else { | ||
var res_1 = tslib_1.__assign({}, (obj || {})); | ||
var res_1 = (0, tslib_1.__assign)({}, (obj || {})); | ||
Object.keys(res_1) | ||
.filter(function (key) { return common_1.isUndefinedOrEmptyObject(res_1[key]); }) | ||
.filter(function (key) { return (0, common_1.isUndefinedOrEmptyObject)(res_1[key]); }) | ||
.forEach(function (key) { return delete res_1[key]; }); | ||
return (common_1.isUndefinedOrEmptyObject(res_1, { ignoreHash: true }) ? empty : res_1); | ||
return ((0, common_1.isUndefinedOrEmptyObject)(res_1, { ignoreHash: true }) ? empty : res_1); | ||
} | ||
}, | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("@platform/cell.types/lib/types.Schema"), exports); | ||
(0, tslib_1.__exportStar)(require("@platform/cell.types/lib/types.Schema"), exports); |
@@ -86,3 +86,3 @@ "use strict"; | ||
}; | ||
return error ? tslib_1.__assign(tslib_1.__assign({}, res), { error: error }) : res; | ||
return error ? (0, tslib_1.__assign)((0, tslib_1.__assign)({}, res), { error: error }) : res; | ||
}; | ||
@@ -115,3 +115,3 @@ Uri.ns = function (input, throwError) { | ||
if (input === undefined) { | ||
return Uri.ns(common_1.cuid()); | ||
return Uri.ns((0, common_1.cuid)()); | ||
} | ||
@@ -156,3 +156,3 @@ if (typeof input === 'string') { | ||
Uri.slug = common_1.slug; | ||
Uri.ALLOW = tslib_1.__assign({}, exports.DEFAULT.ALLOW); | ||
Uri.ALLOW = (0, tslib_1.__assign)({}, exports.DEFAULT.ALLOW); | ||
Uri.create = { | ||
@@ -164,3 +164,3 @@ ns: function (id) { return toUri('ns', 'NS', id); }, | ||
file: function (ns, fileid) { return toUri('file', 'FILE', ns, fileid); }, | ||
A1: function () { return Uri.create.cell(common_1.cuid(), 'A1'); }, | ||
A1: function () { return Uri.create.cell((0, common_1.cuid)(), 'A1'); }, | ||
}; | ||
@@ -167,0 +167,0 @@ Uri.is = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./Urls"), exports); | ||
tslib_1.__exportStar(require("./Url"), exports); | ||
(0, tslib_1.__exportStar)(require("./Urls"), exports); | ||
(0, tslib_1.__exportStar)(require("./Url"), exports); |
@@ -76,3 +76,3 @@ "use strict"; | ||
if (typeof input === 'object') { | ||
query = tslib_1.__assign(tslib_1.__assign({}, query), input); | ||
query = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, query), input); | ||
} | ||
@@ -88,3 +88,3 @@ return new Url({ | ||
if (options === void 0) { options = {}; } | ||
var origin = common_1.defaultValue(options.origin, true); | ||
var origin = (0, common_1.defaultValue)(options.origin, true); | ||
var path = "" + this.path + this.querystring; | ||
@@ -91,0 +91,0 @@ return origin ? "" + this.origin + path : path; |
{ | ||
"name": "@platform/cell.schema", | ||
"version": "0.5.102", | ||
"version": "0.5.103", | ||
"description": "URI and database schemas for the `cell.os`.", | ||
@@ -15,4 +15,4 @@ "main": "lib/index", | ||
"@platform/cache": "0.3.27", | ||
"@platform/cell.coord": "0.8.284", | ||
"@platform/cell.types": "0.5.99", | ||
"@platform/cell.coord": "0.8.285", | ||
"@platform/cell.types": "0.5.100", | ||
"@platform/fs.types": "0.1.12", | ||
@@ -19,0 +19,0 @@ "@platform/fsdb.types": "0.6.68", |
102853
+ Added@platform/cell.coord@0.8.285(transitive)
+ Added@platform/cell.types@0.5.100(transitive)
- Removed@platform/cell.coord@0.8.284(transitive)
- Removed@platform/cell.types@0.5.99(transitive)
Updated@platform/cell.coord@0.8.285
Updated@platform/cell.types@0.5.100