Deploy 9.0.4
This commit is contained in:
parent
0f86b71f78
commit
51c8d3bdc6
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yjs",
|
"name": "yjs",
|
||||||
"version": "9.0.3",
|
"version": "9.0.4",
|
||||||
"homepage": "y-js.org",
|
"homepage": "y-js.org",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Kevin Jahns <kevin.jahns@rwth-aachen.de>"
|
"Kevin Jahns <kevin.jahns@rwth-aachen.de>"
|
||||||
|
20
y.es6
20
y.es6
@ -2708,13 +2708,21 @@ function Y (opts/* :YOptions */) /* :Promise<YConfig> */ {
|
|||||||
}
|
}
|
||||||
Y.sourceDir = opts.sourceDir
|
Y.sourceDir = opts.sourceDir
|
||||||
return Y.requestModules(modules).then(function () {
|
return Y.requestModules(modules).then(function () {
|
||||||
return new Promise(function (resolve) {
|
return new Promise(function (resolve, reject) {
|
||||||
var yconfig = new YConfig(opts)
|
if (opts == null) reject('An options object is expected! ')
|
||||||
yconfig.db.whenUserIdSet(function () {
|
else if (opts.connector == null) reject('You must specify a connector! (missing connector property)')
|
||||||
yconfig.init(function () {
|
else if (opts.connector.name == null) reject('You must specify connector name! (missing connector.name property)')
|
||||||
resolve(yconfig)
|
else if (opts.db == null) reject('You must specify a database! (missing db property)')
|
||||||
|
else if (opts.connector.name == null) reject('You must specify db name! (missing db.name property)')
|
||||||
|
else if (opts.share == null) reject('You must specify a set of shared types!')
|
||||||
|
else {
|
||||||
|
var yconfig = new YConfig(opts)
|
||||||
|
yconfig.db.whenUserIdSet(function () {
|
||||||
|
yconfig.init(function () {
|
||||||
|
resolve(yconfig)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user