@ekino/rendr-core
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1
@@ -27,2 +27,3 @@ /// <reference types="node" /> | ||
export interface BlockDefinition { | ||
id: string; | ||
type: string; | ||
@@ -32,2 +33,3 @@ settings: Settings; | ||
order: number; | ||
meta: object; | ||
} | ||
@@ -42,2 +44,3 @@ export interface Settings { | ||
ttl: number; | ||
sharedTtl: number; | ||
} | ||
@@ -44,0 +47,0 @@ export interface Head { |
@@ -223,2 +223,3 @@ var __extends = (this && this.__extends) || (function () { | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -473,2 +474,3 @@ this.head = { | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -479,2 +481,3 @@ if (!isObject(data)) { | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
cache.sharedTtl = "sharedTtl" in data ? parseInt(data.sharedTtl, 10) : 0; | ||
return cache; | ||
@@ -539,2 +542,4 @@ } | ||
return { | ||
id: "id" in data ? data.id : "", | ||
meta: "meta" in data ? data.meta : {}, | ||
container: "container" in data ? data.container : "body", | ||
@@ -602,2 +607,3 @@ order: "order" in data ? data.order : 0, | ||
page.cache.ttl = p.cache.ttl; | ||
page.cache.sharedTtl = p.cache.sharedTtl; | ||
page.head = { | ||
@@ -604,0 +610,0 @@ titleTemplate: p.head.titleTemplate.length > 0 |
@@ -34,2 +34,3 @@ var __assign = (this && this.__assign) || function () { | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -40,2 +41,3 @@ if (!isObject(data)) { | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
cache.sharedTtl = "sharedTtl" in data ? parseInt(data.sharedTtl, 10) : 0; | ||
return cache; | ||
@@ -97,2 +99,4 @@ } | ||
return { | ||
id: "id" in data ? data.id : "", | ||
meta: "meta" in data ? data.meta : {}, | ||
container: "container" in data ? data.container : "body", | ||
@@ -155,2 +159,3 @@ order: "order" in data ? data.order : 0, | ||
page.cache.ttl = p.cache.ttl; | ||
page.cache.sharedTtl = p.cache.sharedTtl; | ||
page.head = { | ||
@@ -157,0 +162,0 @@ titleTemplate: p.head.titleTemplate.length > 0 |
/// <reference types="node" /> | ||
import { Writable } from "stream"; | ||
export interface BlockDefinition { | ||
id: string; | ||
type: string; | ||
@@ -8,2 +9,3 @@ settings: Settings; | ||
order: number; | ||
meta: object; | ||
} | ||
@@ -18,2 +20,3 @@ export interface Settings { | ||
ttl: number; | ||
sharedTtl: number; | ||
} | ||
@@ -20,0 +23,0 @@ export interface Head { |
@@ -22,2 +22,3 @@ var RedirectPage = (function () { | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -24,0 +25,0 @@ this.head = { |
@@ -52,2 +52,3 @@ "use strict"; | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -58,2 +59,3 @@ if (!isObject(data)) { | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
cache.sharedTtl = "sharedTtl" in data ? parseInt(data.sharedTtl, 10) : 0; | ||
return cache; | ||
@@ -118,2 +120,4 @@ } | ||
return { | ||
id: "id" in data ? data.id : "", | ||
meta: "meta" in data ? data.meta : {}, | ||
container: "container" in data ? data.container : "body", | ||
@@ -181,2 +185,3 @@ order: "order" in data ? data.order : 0, | ||
page.cache.ttl = p.cache.ttl; | ||
page.cache.sharedTtl = p.cache.sharedTtl; | ||
page.head = { | ||
@@ -183,0 +188,0 @@ titleTemplate: p.head.titleTemplate.length > 0 |
/// <reference types="node" /> | ||
import { Writable } from "stream"; | ||
export interface BlockDefinition { | ||
id: string; | ||
type: string; | ||
@@ -8,2 +9,3 @@ settings: Settings; | ||
order: number; | ||
meta: object; | ||
} | ||
@@ -18,2 +20,3 @@ export interface Settings { | ||
ttl: number; | ||
sharedTtl: number; | ||
} | ||
@@ -20,0 +23,0 @@ export interface Head { |
@@ -25,2 +25,3 @@ "use strict"; | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -27,0 +28,0 @@ this.head = { |
{ | ||
"name": "@ekino/rendr-core", | ||
"license": "MIT", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.1", | ||
"main": "dist/lib/index.js", | ||
@@ -22,3 +22,3 @@ "typing": "dist/lib/index.d.ts", | ||
}, | ||
"gitHead": "69fbb418c854bdafb58808fa25a6edc19552f4f5" | ||
"gitHead": "76d8217dde203052d25a59d8107bd80acafb17f3" | ||
} |
@@ -66,2 +66,4 @@ import { createPage, mergePages, Page, createContext } from "./index"; | ||
{ | ||
id: "id-1", | ||
meta: {}, | ||
container: "header", | ||
@@ -73,2 +75,4 @@ order: 1, | ||
{ | ||
id: "id-2", | ||
meta: {}, | ||
container: "header", | ||
@@ -94,2 +98,4 @@ order: 1, | ||
{ | ||
id: "id-1", | ||
meta: {}, | ||
container: "header", | ||
@@ -101,2 +107,4 @@ order: 1, | ||
{ | ||
id: "id-2", | ||
meta: {}, | ||
container: "header", | ||
@@ -103,0 +111,0 @@ order: 1, |
@@ -32,2 +32,3 @@ import parse from "url-parse"; | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -40,2 +41,3 @@ | ||
cache.ttl = "ttl" in data ? parseInt(data.ttl, 10) : 0; | ||
cache.sharedTtl = "sharedTtl" in data ? parseInt(data.sharedTtl, 10) : 0; | ||
@@ -116,2 +118,4 @@ return cache; | ||
return { | ||
id: "id" in data ? data.id : "", | ||
meta: "meta" in data ? data.meta : {}, | ||
container: "container" in data ? data.container : "body", | ||
@@ -202,2 +206,3 @@ order: "order" in data ? data.order : 0, | ||
page.cache.ttl = p.cache.ttl; | ||
page.cache.sharedTtl = p.cache.sharedTtl; | ||
page.head = { | ||
@@ -204,0 +209,0 @@ titleTemplate: |
import { Writable } from "stream"; | ||
export interface BlockDefinition { | ||
id: string; | ||
type: string; | ||
@@ -8,3 +9,5 @@ settings: Settings; | ||
order: number; | ||
meta: object; | ||
} | ||
export interface Settings { | ||
@@ -20,2 +23,3 @@ [index: string]: any; | ||
ttl: number; | ||
sharedTtl: number; | ||
} | ||
@@ -53,2 +57,3 @@ | ||
ttl: 0, | ||
sharedTtl: 0, | ||
}; | ||
@@ -55,0 +60,0 @@ public head: Head = { |
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
150669
3031