From 66c095cadf7b9ca63601cfc925e57de17d8f150c Mon Sep 17 00:00:00 2001 From: cmorten Date: Fri, 25 Jun 2021 14:21:46 +0000 Subject: [PATCH] publish typedocs --- docs/assets/js/search.json | 2 +- docs/interfaces/_guard_.guardoptions.html | 10 ++-- .../_guard_.permissiondescriptorlike.html | 50 ++++++++++++++-- docs/modules/_guard_.html | 60 ++++++++++--------- 4 files changed, 85 insertions(+), 37 deletions(-) diff --git a/docs/assets/js/search.json b/docs/assets/js/search.json index ec17346..7461c03 100644 --- a/docs/assets/js/search.json +++ b/docs/assets/js/search.json @@ -1 +1 @@ -{"kinds":{"1":"Module","32":"Variable","64":"Function","256":"Interface","1024":"Property","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"guard\"","url":"modules/_guard_.html","classes":"tsd-kind-module"},{"id":1,"kind":256,"name":"GuardOptions","url":"interfaces/_guard_.guardoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"\"guard\""},{"id":2,"kind":1024,"name":"granted","url":"interfaces/_guard_.guardoptions.html#granted","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":3,"kind":1024,"name":"exitOnMissing","url":"interfaces/_guard_.guardoptions.html#exitonmissing","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":4,"kind":1024,"name":"exitOnExtra","url":"interfaces/_guard_.guardoptions.html#exitonextra","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":5,"kind":1024,"name":"revoke","url":"interfaces/_guard_.guardoptions.html#revoke","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":6,"kind":1024,"name":"log","url":"interfaces/_guard_.guardoptions.html#log","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":7,"kind":256,"name":"PermissionDescriptorLike","url":"interfaces/_guard_.permissiondescriptorlike.html","classes":"tsd-kind-interface tsd-parent-kind-module tsd-is-not-exported","parent":"\"guard\""},{"id":8,"kind":1024,"name":"name","url":"interfaces/_guard_.permissiondescriptorlike.html#name","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":9,"kind":1024,"name":"url","url":"interfaces/_guard_.permissiondescriptorlike.html#url","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":10,"kind":1024,"name":"host","url":"interfaces/_guard_.permissiondescriptorlike.html#host","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":11,"kind":1024,"name":"path","url":"interfaces/_guard_.permissiondescriptorlike.html#path","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":12,"kind":4194304,"name":"GuardGrant","url":"modules/_guard_.html#guardgrant","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"\"guard\""},{"id":13,"kind":4194304,"name":"PermissionDescriptorStatus","url":"modules/_guard_.html#permissiondescriptorstatus","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":14,"kind":32,"name":"GRANTED","url":"modules/_guard_.html#granted","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":15,"kind":32,"name":"DENIED","url":"modules/_guard_.html#denied","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":16,"kind":32,"name":"PROMPT","url":"modules/_guard_.html#prompt","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":17,"kind":32,"name":"RUN","url":"modules/_guard_.html#run","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":18,"kind":32,"name":"READ","url":"modules/_guard_.html#read","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":19,"kind":32,"name":"WRITE","url":"modules/_guard_.html#write","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":20,"kind":32,"name":"NET","url":"modules/_guard_.html#net","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":21,"kind":32,"name":"ENV","url":"modules/_guard_.html#env","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":22,"kind":32,"name":"PLUGIN","url":"modules/_guard_.html#plugin","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":23,"kind":32,"name":"HRTIME","url":"modules/_guard_.html#hrtime","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":24,"kind":32,"name":"topLevelPermissions","url":"modules/_guard_.html#toplevelpermissions","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":25,"kind":32,"name":"permissionNameToFlagMap","url":"modules/_guard_.html#permissionnametoflagmap","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":26,"kind":32,"name":"permissionsWithAllowlists","url":"modules/_guard_.html#permissionswithallowlists","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":27,"kind":32,"name":"HTTP_PROTOCOL","url":"modules/_guard_.html#http_protocol","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":28,"kind":64,"name":"getPermissionDescriptorStatus","url":"modules/_guard_.html#getpermissiondescriptorstatus","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":29,"kind":64,"name":"handleUngrantedTopLevelPermissions","url":"modules/_guard_.html#handleungrantedtoplevelpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":30,"kind":64,"name":"getPermissionAllowlist","url":"modules/_guard_.html#getpermissionallowlist","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":31,"kind":64,"name":"handleMissingGrantedPermissions","url":"modules/_guard_.html#handlemissinggrantedpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":32,"kind":64,"name":"getUnscopedPermissions","url":"modules/_guard_.html#getunscopedpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":33,"kind":64,"name":"handleUnscopedPermissions","url":"modules/_guard_.html#handleunscopedpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":34,"kind":64,"name":"guard","url":"modules/_guard_.html#guard","classes":"tsd-kind-function tsd-parent-kind-module","parent":"\"guard\""}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,2.693]],["parent/0",[]],["name/1",[1,31.781]],["parent/1",[0,0.266]],["name/2",[2,26.672]],["parent/2",[3,1.856]],["name/3",[4,31.781]],["parent/3",[3,1.856]],["name/4",[5,31.781]],["parent/4",[3,1.856]],["name/5",[6,31.781]],["parent/5",[3,1.856]],["name/6",[7,31.781]],["parent/6",[3,1.856]],["name/7",[8,31.781]],["parent/7",[0,0.266]],["name/8",[9,31.781]],["parent/8",[10,2.055]],["name/9",[11,31.781]],["parent/9",[10,2.055]],["name/10",[12,31.781]],["parent/10",[10,2.055]],["name/11",[13,31.781]],["parent/11",[10,2.055]],["name/12",[14,31.781]],["parent/12",[0,0.266]],["name/13",[15,31.781]],["parent/13",[0,0.266]],["name/14",[2,26.672]],["parent/14",[0,0.266]],["name/15",[16,31.781]],["parent/15",[0,0.266]],["name/16",[17,31.781]],["parent/16",[0,0.266]],["name/17",[18,31.781]],["parent/17",[0,0.266]],["name/18",[19,31.781]],["parent/18",[0,0.266]],["name/19",[20,31.781]],["parent/19",[0,0.266]],["name/20",[21,31.781]],["parent/20",[0,0.266]],["name/21",[22,31.781]],["parent/21",[0,0.266]],["name/22",[23,31.781]],["parent/22",[0,0.266]],["name/23",[24,31.781]],["parent/23",[0,0.266]],["name/24",[25,31.781]],["parent/24",[0,0.266]],["name/25",[26,31.781]],["parent/25",[0,0.266]],["name/26",[27,31.781]],["parent/26",[0,0.266]],["name/27",[28,31.781]],["parent/27",[0,0.266]],["name/28",[29,31.781]],["parent/28",[0,0.266]],["name/29",[30,31.781]],["parent/29",[0,0.266]],["name/30",[31,31.781]],["parent/30",[0,0.266]],["name/31",[32,31.781]],["parent/31",[0,0.266]],["name/32",[33,31.781]],["parent/32",[0,0.266]],["name/33",[34,31.781]],["parent/33",[0,0.266]],["name/34",[0,2.693]],["parent/34",[0,0.266]]],"invertedIndex":[["denied",{"_index":16,"name":{"15":{}},"parent":{}}],["env",{"_index":22,"name":{"21":{}},"parent":{}}],["exitonextra",{"_index":5,"name":{"4":{}},"parent":{}}],["exitonmissing",{"_index":4,"name":{"3":{}},"parent":{}}],["getpermissionallowlist",{"_index":31,"name":{"30":{}},"parent":{}}],["getpermissiondescriptorstatus",{"_index":29,"name":{"28":{}},"parent":{}}],["getunscopedpermissions",{"_index":33,"name":{"32":{}},"parent":{}}],["granted",{"_index":2,"name":{"2":{},"14":{}},"parent":{}}],["guard",{"_index":0,"name":{"0":{},"34":{}},"parent":{"1":{},"7":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{}}}],["guard\".guardoptions",{"_index":3,"name":{},"parent":{"2":{},"3":{},"4":{},"5":{},"6":{}}}],["guard\".permissiondescriptorlike",{"_index":10,"name":{},"parent":{"8":{},"9":{},"10":{},"11":{}}}],["guardgrant",{"_index":14,"name":{"12":{}},"parent":{}}],["guardoptions",{"_index":1,"name":{"1":{}},"parent":{}}],["handlemissinggrantedpermissions",{"_index":32,"name":{"31":{}},"parent":{}}],["handleungrantedtoplevelpermissions",{"_index":30,"name":{"29":{}},"parent":{}}],["handleunscopedpermissions",{"_index":34,"name":{"33":{}},"parent":{}}],["host",{"_index":12,"name":{"10":{}},"parent":{}}],["hrtime",{"_index":24,"name":{"23":{}},"parent":{}}],["http_protocol",{"_index":28,"name":{"27":{}},"parent":{}}],["log",{"_index":7,"name":{"6":{}},"parent":{}}],["name",{"_index":9,"name":{"8":{}},"parent":{}}],["net",{"_index":21,"name":{"20":{}},"parent":{}}],["path",{"_index":13,"name":{"11":{}},"parent":{}}],["permissiondescriptorlike",{"_index":8,"name":{"7":{}},"parent":{}}],["permissiondescriptorstatus",{"_index":15,"name":{"13":{}},"parent":{}}],["permissionnametoflagmap",{"_index":26,"name":{"25":{}},"parent":{}}],["permissionswithallowlists",{"_index":27,"name":{"26":{}},"parent":{}}],["plugin",{"_index":23,"name":{"22":{}},"parent":{}}],["prompt",{"_index":17,"name":{"16":{}},"parent":{}}],["read",{"_index":19,"name":{"18":{}},"parent":{}}],["revoke",{"_index":6,"name":{"5":{}},"parent":{}}],["run",{"_index":18,"name":{"17":{}},"parent":{}}],["toplevelpermissions",{"_index":25,"name":{"24":{}},"parent":{}}],["url",{"_index":11,"name":{"9":{}},"parent":{}}],["write",{"_index":20,"name":{"19":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file +{"kinds":{"1":"Module","32":"Variable","64":"Function","256":"Interface","1024":"Property","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"guard\"","url":"modules/_guard_.html","classes":"tsd-kind-module"},{"id":1,"kind":256,"name":"GuardOptions","url":"interfaces/_guard_.guardoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"\"guard\""},{"id":2,"kind":1024,"name":"granted","url":"interfaces/_guard_.guardoptions.html#granted","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":3,"kind":1024,"name":"exitOnMissing","url":"interfaces/_guard_.guardoptions.html#exitonmissing","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":4,"kind":1024,"name":"exitOnExtra","url":"interfaces/_guard_.guardoptions.html#exitonextra","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":5,"kind":1024,"name":"revoke","url":"interfaces/_guard_.guardoptions.html#revoke","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":6,"kind":1024,"name":"log","url":"interfaces/_guard_.guardoptions.html#log","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"guard\".GuardOptions"},{"id":7,"kind":256,"name":"PermissionDescriptorLike","url":"interfaces/_guard_.permissiondescriptorlike.html","classes":"tsd-kind-interface tsd-parent-kind-module tsd-is-not-exported","parent":"\"guard\""},{"id":8,"kind":1024,"name":"name","url":"interfaces/_guard_.permissiondescriptorlike.html#name","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":9,"kind":1024,"name":"state","url":"interfaces/_guard_.permissiondescriptorlike.html#state","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":10,"kind":1024,"name":"url","url":"interfaces/_guard_.permissiondescriptorlike.html#url","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":11,"kind":1024,"name":"host","url":"interfaces/_guard_.permissiondescriptorlike.html#host","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":12,"kind":1024,"name":"path","url":"interfaces/_guard_.permissiondescriptorlike.html#path","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":13,"kind":1024,"name":"command","url":"interfaces/_guard_.permissiondescriptorlike.html#command","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":14,"kind":1024,"name":"variable","url":"interfaces/_guard_.permissiondescriptorlike.html#variable","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"guard\".PermissionDescriptorLike"},{"id":15,"kind":4194304,"name":"GuardGrant","url":"modules/_guard_.html#guardgrant","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"\"guard\""},{"id":16,"kind":4194304,"name":"PermissionDescriptorStatus","url":"modules/_guard_.html#permissiondescriptorstatus","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":17,"kind":32,"name":"GRANTED","url":"modules/_guard_.html#granted","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":18,"kind":32,"name":"DENIED","url":"modules/_guard_.html#denied","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":19,"kind":32,"name":"PROMPT","url":"modules/_guard_.html#prompt","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":20,"kind":32,"name":"RUN","url":"modules/_guard_.html#run","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":21,"kind":32,"name":"READ","url":"modules/_guard_.html#read","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":22,"kind":32,"name":"WRITE","url":"modules/_guard_.html#write","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":23,"kind":32,"name":"NET","url":"modules/_guard_.html#net","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":24,"kind":32,"name":"ENV","url":"modules/_guard_.html#env","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":25,"kind":32,"name":"PLUGIN","url":"modules/_guard_.html#plugin","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":26,"kind":32,"name":"HRTIME","url":"modules/_guard_.html#hrtime","classes":"tsd-kind-variable tsd-parent-kind-module","parent":"\"guard\""},{"id":27,"kind":32,"name":"topLevelPermissions","url":"modules/_guard_.html#toplevelpermissions","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":28,"kind":32,"name":"permissionNameToFlagMap","url":"modules/_guard_.html#permissionnametoflagmap","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":29,"kind":32,"name":"permissionsWithAllowlists","url":"modules/_guard_.html#permissionswithallowlists","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":30,"kind":32,"name":"HTTP_PROTOCOL","url":"modules/_guard_.html#http_protocol","classes":"tsd-kind-variable tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":31,"kind":64,"name":"getPermissionDescriptorStatus","url":"modules/_guard_.html#getpermissiondescriptorstatus","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":32,"kind":64,"name":"handleUngrantedTopLevelPermissions","url":"modules/_guard_.html#handleungrantedtoplevelpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":33,"kind":64,"name":"getPermissionAllowlist","url":"modules/_guard_.html#getpermissionallowlist","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":34,"kind":64,"name":"handleMissingGrantedPermissions","url":"modules/_guard_.html#handlemissinggrantedpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":35,"kind":64,"name":"getUnscopedPermissions","url":"modules/_guard_.html#getunscopedpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":36,"kind":64,"name":"handleUnscopedPermissions","url":"modules/_guard_.html#handleunscopedpermissions","classes":"tsd-kind-function tsd-parent-kind-module tsd-is-private tsd-is-not-exported","parent":"\"guard\""},{"id":37,"kind":64,"name":"guard","url":"modules/_guard_.html#guard","classes":"tsd-kind-function tsd-parent-kind-module","parent":"\"guard\""}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,3.494]],["parent/0",[]],["name/1",[1,32.581]],["parent/1",[0,0.346]],["name/2",[2,27.473]],["parent/2",[3,1.937]],["name/3",[4,32.581]],["parent/3",[3,1.937]],["name/4",[5,32.581]],["parent/4",[3,1.937]],["name/5",[6,32.581]],["parent/5",[3,1.937]],["name/6",[7,32.581]],["parent/6",[3,1.937]],["name/7",[8,32.581]],["parent/7",[0,0.346]],["name/8",[9,32.581]],["parent/8",[10,1.631]],["name/9",[11,32.581]],["parent/9",[10,1.631]],["name/10",[12,32.581]],["parent/10",[10,1.631]],["name/11",[13,32.581]],["parent/11",[10,1.631]],["name/12",[14,32.581]],["parent/12",[10,1.631]],["name/13",[15,32.581]],["parent/13",[10,1.631]],["name/14",[16,32.581]],["parent/14",[10,1.631]],["name/15",[17,32.581]],["parent/15",[0,0.346]],["name/16",[18,32.581]],["parent/16",[0,0.346]],["name/17",[2,27.473]],["parent/17",[0,0.346]],["name/18",[19,32.581]],["parent/18",[0,0.346]],["name/19",[20,32.581]],["parent/19",[0,0.346]],["name/20",[21,32.581]],["parent/20",[0,0.346]],["name/21",[22,32.581]],["parent/21",[0,0.346]],["name/22",[23,32.581]],["parent/22",[0,0.346]],["name/23",[24,32.581]],["parent/23",[0,0.346]],["name/24",[25,32.581]],["parent/24",[0,0.346]],["name/25",[26,32.581]],["parent/25",[0,0.346]],["name/26",[27,32.581]],["parent/26",[0,0.346]],["name/27",[28,32.581]],["parent/27",[0,0.346]],["name/28",[29,32.581]],["parent/28",[0,0.346]],["name/29",[30,32.581]],["parent/29",[0,0.346]],["name/30",[31,32.581]],["parent/30",[0,0.346]],["name/31",[32,32.581]],["parent/31",[0,0.346]],["name/32",[33,32.581]],["parent/32",[0,0.346]],["name/33",[34,32.581]],["parent/33",[0,0.346]],["name/34",[35,32.581]],["parent/34",[0,0.346]],["name/35",[36,32.581]],["parent/35",[0,0.346]],["name/36",[37,32.581]],["parent/36",[0,0.346]],["name/37",[0,3.494]],["parent/37",[0,0.346]]],"invertedIndex":[["command",{"_index":15,"name":{"13":{}},"parent":{}}],["denied",{"_index":19,"name":{"18":{}},"parent":{}}],["env",{"_index":25,"name":{"24":{}},"parent":{}}],["exitonextra",{"_index":5,"name":{"4":{}},"parent":{}}],["exitonmissing",{"_index":4,"name":{"3":{}},"parent":{}}],["getpermissionallowlist",{"_index":34,"name":{"33":{}},"parent":{}}],["getpermissiondescriptorstatus",{"_index":32,"name":{"31":{}},"parent":{}}],["getunscopedpermissions",{"_index":36,"name":{"35":{}},"parent":{}}],["granted",{"_index":2,"name":{"2":{},"17":{}},"parent":{}}],["guard",{"_index":0,"name":{"0":{},"37":{}},"parent":{"1":{},"7":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{}}}],["guard\".guardoptions",{"_index":3,"name":{},"parent":{"2":{},"3":{},"4":{},"5":{},"6":{}}}],["guard\".permissiondescriptorlike",{"_index":10,"name":{},"parent":{"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{}}}],["guardgrant",{"_index":17,"name":{"15":{}},"parent":{}}],["guardoptions",{"_index":1,"name":{"1":{}},"parent":{}}],["handlemissinggrantedpermissions",{"_index":35,"name":{"34":{}},"parent":{}}],["handleungrantedtoplevelpermissions",{"_index":33,"name":{"32":{}},"parent":{}}],["handleunscopedpermissions",{"_index":37,"name":{"36":{}},"parent":{}}],["host",{"_index":13,"name":{"11":{}},"parent":{}}],["hrtime",{"_index":27,"name":{"26":{}},"parent":{}}],["http_protocol",{"_index":31,"name":{"30":{}},"parent":{}}],["log",{"_index":7,"name":{"6":{}},"parent":{}}],["name",{"_index":9,"name":{"8":{}},"parent":{}}],["net",{"_index":24,"name":{"23":{}},"parent":{}}],["path",{"_index":14,"name":{"12":{}},"parent":{}}],["permissiondescriptorlike",{"_index":8,"name":{"7":{}},"parent":{}}],["permissiondescriptorstatus",{"_index":18,"name":{"16":{}},"parent":{}}],["permissionnametoflagmap",{"_index":29,"name":{"28":{}},"parent":{}}],["permissionswithallowlists",{"_index":30,"name":{"29":{}},"parent":{}}],["plugin",{"_index":26,"name":{"25":{}},"parent":{}}],["prompt",{"_index":20,"name":{"19":{}},"parent":{}}],["read",{"_index":22,"name":{"21":{}},"parent":{}}],["revoke",{"_index":6,"name":{"5":{}},"parent":{}}],["run",{"_index":21,"name":{"20":{}},"parent":{}}],["state",{"_index":11,"name":{"9":{}},"parent":{}}],["toplevelpermissions",{"_index":28,"name":{"27":{}},"parent":{}}],["url",{"_index":12,"name":{"10":{}},"parent":{}}],["variable",{"_index":16,"name":{"14":{}},"parent":{}}],["write",{"_index":23,"name":{"22":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file diff --git a/docs/interfaces/_guard_.guardoptions.html b/docs/interfaces/_guard_.guardoptions.html index 701d571..7480303 100644 --- a/docs/interfaces/_guard_.guardoptions.html +++ b/docs/interfaces/_guard_.guardoptions.html @@ -108,7 +108,7 @@

Optional exitOnExtra

exitOnExtra: boolean
@@ -125,7 +125,7 @@

Optional exitOnMissingexitOnMissing: boolean

@@ -142,7 +142,7 @@

Optional granted

granted: GuardGrant[]
@@ -158,7 +158,7 @@

Optional log

log: boolean
@@ -174,7 +174,7 @@

Optional revoke

revoke: boolean
diff --git a/docs/interfaces/_guard_.permissiondescriptorlike.html b/docs/interfaces/_guard_.permissiondescriptorlike.html index d94f8fd..2fc8007 100644 --- a/docs/interfaces/_guard_.permissiondescriptorlike.html +++ b/docs/interfaces/_guard_.permissiondescriptorlike.html @@ -82,10 +82,13 @@

Index

Properties

@@ -93,13 +96,23 @@

Properties

Properties

+
+ +

Optional command

+
command: string
+ +

Optional host

host: string
@@ -109,7 +122,7 @@

Optional name

name: string
@@ -119,7 +132,17 @@

Optional path

path: string
+ +
+ +

Optional state

+
state: Deno.PermissionState
+
@@ -129,7 +152,17 @@

Optional url

url: string
+ +
+ +

Optional variable

+
variable: string
+
@@ -156,6 +189,9 @@

Optional url

  • PermissionDescriptorLike
  • diff --git a/docs/modules/_guard_.html b/docs/modules/_guard_.html index f345873..1fb99b4 100644 --- a/docs/modules/_guard_.html +++ b/docs/modules/_guard_.html @@ -124,7 +124,7 @@

    GuardGrant

    GuardGrant: Deno.PermissionName | Deno.PermissionDescriptor
    @@ -137,10 +137,10 @@

    GuardGrant

    Private PermissionDescriptorStatus

    -
    PermissionDescriptorStatus: Deno.PermissionStatus & Deno.PermissionDescriptor
    +
    PermissionDescriptorStatus: { state: Deno.PermissionState } & Deno.PermissionDescriptor
    @@ -159,7 +159,7 @@

    Const DENIED

    DENIED: Deno.PermissionState = "denied"
    @@ -179,7 +179,7 @@

    Const ENV

    ENV: Deno.PermissionName = "env"
    @@ -201,7 +201,7 @@

    Const GRANTED

    GRANTED: Deno.PermissionState = "granted"
    @@ -221,7 +221,7 @@

    Const HRTIME

    HRTIME: Deno.PermissionName = "hrtime"
    @@ -243,7 +243,7 @@

    Private HTTP_PROTOCOL: RegExp = /^https?\:\/\//

    @@ -258,7 +258,7 @@

    Const NET

    NET: Deno.PermissionName = "net"
    @@ -280,7 +280,7 @@

    Const PLUGIN

    PLUGIN: Deno.PermissionName = "plugin"
    @@ -302,7 +302,7 @@

    Const PROMPT

    PROMPT: Deno.PermissionState = "prompt"
    @@ -322,7 +322,7 @@

    Const READ

    READ: Deno.PermissionName = "read"
    @@ -344,7 +344,7 @@

    Const RUN

    RUN: Deno.PermissionName = "run"
    @@ -366,7 +366,7 @@

    Const WRITE

    WRITE: Deno.PermissionName = "write"
    @@ -388,7 +388,7 @@

    Private permissionNameToFlagMap: Map<Deno.PermissionName, string> = new Map(topLevelPermissions.map(({ name }) => [name, `--allow-${name}`]),)

    @@ -400,10 +400,10 @@

    Private

    Private Const permissionsWithAllowlists

    -
    permissionsWithAllowlists: Deno.PermissionName[] = [READ, NET, WRITE]
    +
    permissionsWithAllowlists: Deno.PermissionName[] = [ENV,READ,RUN,NET,WRITE,]
    @@ -418,7 +418,7 @@

    Private topLevelPermissions: Deno.PermissionDescriptor[] = [{ name: RUN },{ name: READ },{ name: WRITE },{ name: NET },{ name: ENV },{ name: PLUGIN },{ name: HRTIME },]

    @@ -434,13 +434,13 @@

    Functions

    Private Const getPermissionAllowlist

      -
    • getPermissionAllowlist(__namedParameters?: { host: string; path: string; url: string }): string
    • +
    • getPermissionAllowlist(__namedParameters?: { command: string; host: string; path: string; url: string; variable: string }): string
    • @@ -452,8 +452,11 @@

      Private Parameters

      • -
        Default value __namedParameters: { host: string; path: string; url: string } = {}
        +
        Default value __namedParameters: { command: string; host: string; path: string; url: string; variable: string } = {}
          +
        • +
          command: string
          +
        • host: string
        • @@ -463,6 +466,9 @@
          path:
          url: string
          +
        • +
          variable: string
          +
      @@ -480,7 +486,7 @@

      Private
      @@ -509,7 +515,7 @@

      Private
      @@ -538,7 +544,7 @@

      guard

    • @@ -595,7 +601,7 @@

      Private
      @@ -627,7 +633,7 @@

      Private
      @@ -659,7 +665,7 @@

      Private