@jupyterlab/docprovider
Advanced tools
Comparing version 3.1.0-beta.1 to 3.1.0-beta.2
@@ -5,2 +5,3 @@ /* ----------------------------------------------------------------------------- | ||
|----------------------------------------------------------------------------*/ | ||
import { PromiseDelegate } from '@lumino/coreutils'; | ||
import * as decoding from 'lib0/decoding'; | ||
@@ -103,8 +104,3 @@ import * as encoding from 'lib0/encoding'; | ||
} | ||
let resolve, reject; | ||
const promise = new Promise((_resolve, _reject) => { | ||
resolve = _resolve; | ||
reject = _reject; | ||
}); | ||
this._initialContentRequest = { promise, resolve, reject }; | ||
this._initialContentRequest = new PromiseDelegate(); | ||
this._sendMessage(new Uint8Array([125])); | ||
@@ -115,4 +111,4 @@ // Resolve with true if the server doesn't respond for some reason. | ||
// @todo maybe we should reload instead.. | ||
setTimeout(() => resolve(false), 1000); | ||
return promise; | ||
setTimeout(() => { var _a; return (_a = this._initialContentRequest) === null || _a === void 0 ? void 0 : _a.resolve(false); }, 1000); | ||
return this._initialContentRequest.promise; | ||
} | ||
@@ -119,0 +115,0 @@ /** |
{ | ||
"name": "@jupyterlab/docprovider", | ||
"version": "3.1.0-beta.1", | ||
"version": "3.1.0-beta.2", | ||
"description": "JupyterLab - Document Provider", | ||
@@ -41,3 +41,3 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/shared-models": "^3.1.0-beta.1", | ||
"@jupyterlab/shared-models": "^3.1.0-beta.2", | ||
"@lumino/coreutils": "^1.5.3", | ||
@@ -49,3 +49,3 @@ "lib0": "^0.2.42", | ||
"devDependencies": { | ||
"@jupyterlab/testutils": "^3.1.0-beta.1", | ||
"@jupyterlab/testutils": "^3.1.0-beta.2", | ||
"@types/jest": "^26.0.10", | ||
@@ -59,4 +59,3 @@ "jest": "^26.4.2", | ||
"access": "public" | ||
}, | ||
"gitHead": "96e326b4c0b3156203c59a79b60c760a9c33baae" | ||
} | ||
} |
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
25027
16
491