@ekino/rendr-core
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -83,2 +83,12 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
@@ -94,2 +104,3 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NormalizationError = exports.InternalServerError = exports.NotFoundError = exports.RendrError = void 0; | ||
function getErrorParameters(defaultMessage, args) { | ||
@@ -178,2 +189,3 @@ if (args.length === 0) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Page = void 0; | ||
var Page = (function () { | ||
@@ -207,2 +219,3 @@ function Page() { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.pipeIteratorToWritable = exports.transformGenerator = exports.createPageReferencesGenerator = exports.createPageReference = void 0; | ||
util_1 = __importDefault(util_1); | ||
@@ -238,3 +251,3 @@ var finished; | ||
_f.trys.push([2, 9, 10, 15]); | ||
_c = __asyncValues(generator()); | ||
_c = (e_1 = void 0, __asyncValues(generator())); | ||
_f.label = 3; | ||
@@ -377,10 +390,8 @@ case 3: return [4, __await(_c.next())]; | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mergePages = exports.createContext = exports.createPage = exports.normalizeBlockDefinition = exports.normalizeBlockDefinitions = exports.normalizeHead = exports.normalizeCache = exports.isArray = exports.isObject = void 0; | ||
url_parse_1 = __importDefault(url_parse_1); | ||
__export(types_2); | ||
__export(errors_1); | ||
__export(generator_2); | ||
__exportStar(types_2, exports); | ||
__exportStar(errors_1, exports); | ||
__exportStar(generator_2, exports); | ||
function isObject(data) { | ||
@@ -401,3 +412,3 @@ return data !== null && typeof data === "object"; | ||
} | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 0) : 0; | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
return cache; | ||
@@ -404,0 +415,0 @@ } |
@@ -86,3 +86,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
_f.trys.push([2, 9, 10, 15]); | ||
_c = __asyncValues(generator()); | ||
_c = (e_1 = void 0, __asyncValues(generator())); | ||
_f.label = 3; | ||
@@ -89,0 +89,0 @@ case 3: return [4, __await(_c.next())]; |
@@ -38,3 +38,3 @@ var __assign = (this && this.__assign) || function () { | ||
} | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 0) : 0; | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
return cache; | ||
@@ -41,0 +41,0 @@ } |
@@ -27,2 +27,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NormalizationError = exports.InternalServerError = exports.NotFoundError = exports.RendrError = void 0; | ||
function getErrorParameters(defaultMessage, args) { | ||
@@ -29,0 +30,0 @@ if (args.length === 0) { |
@@ -61,2 +61,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.pipeIteratorToWritable = exports.transformGenerator = exports.createPageReferencesGenerator = exports.createPageReference = void 0; | ||
var stream_1 = require("stream"); | ||
@@ -93,3 +94,3 @@ var util_1 = __importDefault(require("util")); | ||
_f.trys.push([2, 9, 10, 15]); | ||
_c = __asyncValues(generator()); | ||
_c = (e_1 = void 0, __asyncValues(generator())); | ||
_f.label = 3; | ||
@@ -96,0 +97,0 @@ case 3: return [4, __await(_c.next())]; |
@@ -13,2 +13,12 @@ "use strict"; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
@@ -21,5 +31,2 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -29,8 +36,9 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mergePages = exports.createContext = exports.createPage = exports.normalizeBlockDefinition = exports.normalizeBlockDefinitions = exports.normalizeHead = exports.normalizeCache = exports.isArray = exports.isObject = void 0; | ||
var http_1 = require("http"); | ||
var url_parse_1 = __importDefault(require("url-parse")); | ||
var types_1 = require("./types"); | ||
__export(require("./types")); | ||
__export(require("./errors")); | ||
__export(require("./generator")); | ||
__exportStar(require("./types"), exports); | ||
__exportStar(require("./errors"), exports); | ||
__exportStar(require("./generator"), exports); | ||
function isObject(data) { | ||
@@ -51,3 +59,3 @@ return data !== null && typeof data === "object"; | ||
} | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 0) : 0; | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
return cache; | ||
@@ -54,0 +62,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Page = void 0; | ||
var Page = (function () { | ||
@@ -4,0 +5,0 @@ function Page() { |
{ | ||
"name": "@ekino/rendr-core", | ||
"license": "MIT", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"main": "dist/lib/index.js", | ||
@@ -22,3 +22,3 @@ "typing": "dist/lib/index.d.ts", | ||
}, | ||
"gitHead": "5da66dfd84492ef08f34dfb6014f44a1e9969609" | ||
"gitHead": "5a7b0e3cd4f07c75e01e3c59b7b90c85de2260ca" | ||
} |
@@ -27,3 +27,3 @@ import { IncomingMessage, ServerResponse } from "http"; | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 0) : 0; | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
@@ -30,0 +30,0 @@ return cache; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128100
2513