@biscuit-auth/web-components
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -15,2 +15,3 @@ "use strict"; | ||
constructor() { | ||
var _a, _b; | ||
super(); | ||
@@ -24,3 +25,3 @@ this.biscuit = ""; | ||
if (authorizerChild !== null) { | ||
this.authorizer = authorizerChild.textContent.trim(); | ||
this.authorizer = (_b = (_a = authorizerChild.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : ""; | ||
} | ||
@@ -145,9 +146,7 @@ } | ||
}; | ||
console.log({ authorizerQuery }); | ||
const authorizerResult = (0, biscuit_wasm_support_1.execute)(authorizerQuery); | ||
console.log({ authorizerResult }); | ||
const blockMarkers = authorizerResult.token_blocks.map((b) => b.markers.map(this.convertMark)); | ||
return (0, lit_1.html) ` | ||
<div class="row"> | ||
${this.renderResult(parseResult.error, blocks, blockMarkers)} | ||
${this.renderResult(parseResult.error, blocks, this.showAuthorizer ? blockMarkers : [])} | ||
</div> | ||
@@ -154,0 +153,0 @@ <div class="row"> |
@@ -12,2 +12,3 @@ import { __decorate } from "tslib"; | ||
constructor() { | ||
var _a, _b; | ||
super(); | ||
@@ -21,3 +22,3 @@ this.biscuit = ""; | ||
if (authorizerChild !== null) { | ||
this.authorizer = authorizerChild.textContent.trim(); | ||
this.authorizer = (_b = (_a = authorizerChild.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : ""; | ||
} | ||
@@ -142,9 +143,7 @@ } | ||
}; | ||
console.log({ authorizerQuery }); | ||
const authorizerResult = execute(authorizerQuery); | ||
console.log({ authorizerResult }); | ||
const blockMarkers = authorizerResult.token_blocks.map((b) => b.markers.map(this.convertMark)); | ||
return html ` | ||
<div class="row"> | ||
${this.renderResult(parseResult.error, blocks, blockMarkers)} | ||
${this.renderResult(parseResult.error, blocks, this.showAuthorizer ? blockMarkers : [])} | ||
</div> | ||
@@ -151,0 +150,0 @@ <div class="row"> |
@@ -11,3 +11,3 @@ { | ||
"author": "Geoffroy Couprie", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"scripts": { | ||
@@ -19,3 +19,3 @@ "start": "wds --node-resolve --open demo/", | ||
"build": "tsc", | ||
"prepublishOnly": "tsc && tsc -p tsconfig-cjs.json", | ||
"prepublishOnly": "npm run ci && tsc && tsc -p tsconfig-cjs.json", | ||
"ci": "tsc && eslint src --ext .ts && prettier -c src", | ||
@@ -22,0 +22,0 @@ "format": "prettier -w src" |
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
247287
3157