@ekino/rendr-core
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -108,3 +108,5 @@ "use strict"; | ||
function createContext(req, res) { | ||
var url = url_parse_1.default(req.url, true); | ||
var isServerSide = res ? true : false; | ||
var asPath = req.url; | ||
var url = url_parse_1.default(asPath, true); | ||
var ctx = { | ||
@@ -114,5 +116,7 @@ pathname: url.pathname, | ||
params: {}, | ||
asPath: req.url, | ||
req: req, | ||
res: res | ||
asPath: asPath, | ||
isServerSide: isServerSide, | ||
isClientSide: !isServerSide, | ||
req: isServerSide ? req : null, | ||
res: isServerSide ? res : null | ||
}; | ||
@@ -119,0 +123,0 @@ return ctx; |
{ | ||
"name": "@ekino/rendr-core", | ||
"license": "MIT", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "dist/lib/index.js", | ||
@@ -25,3 +25,3 @@ "typing": "dist/lib/index.d.ts", | ||
}, | ||
"gitHead": "e47969dc3d679d3c010ff0c96f992046bbb59580" | ||
"gitHead": "e0cc2f1ec7ac893f0c887530133a801be4cc225f" | ||
} |
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
5302
123