@bayou/assets-client
Advanced tools
Comparing version 1.0.6 to 1.2.4
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -16,9 +16,10 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> | ||
* This global function is what ultimately gets called to attempt recovery. In | ||
* this case, we rely on the `/key/*` debugging endpoints to generate a new key. | ||
* If that's successful, we report it back up through the layers. | ||
* this case, we rely on the `/access/*` debugging endpoints to generate new | ||
* access info. If that's successful, we report it back up through the layers. | ||
*/ | ||
function BAYOU_RECOVER(key) { | ||
var docId = DEBUG_DOCUMENT_ID; | ||
var authorId = DEBUG_AUTHOR_ID; | ||
var url = `${new URL(key.url).origin}/debug/key/${docId}/${authorId}`; | ||
function BAYOU_RECOVER(info) { | ||
var documentId = DEBUG_DOCUMENT_ID; | ||
var authorId = DEBUG_AUTHOR_ID; | ||
var origin = new URL(info.serverUrl).origin; | ||
var url = `${origin}/debug/access/${documentId}/${authorId}`; | ||
@@ -63,3 +64,3 @@ return new Promise((res, rej_unused) => { | ||
// This gets used by `boot-from-key`. | ||
// This gets used by `boot-from-info`. | ||
window.BAYOU_NODE = editorNode; | ||
@@ -69,4 +70,4 @@ | ||
var elem = document.createElement('script'); | ||
elem.src = '/boot-from-key.js'; | ||
elem.src = '/boot-from-info.js'; | ||
document.head.appendChild(elem); | ||
}) |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -7,6 +7,6 @@ { | ||
"dependencies": { | ||
"@bayou/util-common": "1.0.6" | ||
"@bayou/util-common": "1.2.4" | ||
}, | ||
"name": "@bayou/assets-client", | ||
"version": "1.0.6" | ||
"version": "1.2.4" | ||
} |
@@ -13,5 +13,5 @@ @bayou/assets-client | ||
``` | ||
Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> | ||
``` |
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
30889
355
+ Added@bayou/typecheck@1.2.4(transitive)
+ Added@bayou/util-common@1.2.4(transitive)
+ Added@bayou/util-core@1.2.4(transitive)
- Removed@bayou/typecheck@1.0.6(transitive)
- Removed@bayou/util-common@1.0.6(transitive)
- Removed@bayou/util-core@1.0.6(transitive)
Updated@bayou/util-common@1.2.4