Comparing version 12.0.3 to 12.0.4
{ | ||
"name": "yjs", | ||
"version": "12.0.3", | ||
"version": "12.0.4", | ||
"homepage": "y-js.org", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "yjs", | ||
"version": "12.0.3", | ||
"version": "12.0.4", | ||
"description": "A framework for real-time p2p shared editing on any data", | ||
@@ -5,0 +5,0 @@ "main": "./src/y.js", |
@@ -40,4 +40,4 @@ /* @flow */ | ||
Y.requestModules = requestModules | ||
function requestModules (modules, sourceDir) { | ||
sourceDir = sourceDir || '/bower_components' | ||
function requestModules (modules) { | ||
var sourceDir = Y.sourceDir || '/bower_components' | ||
// determine if this module was compiled for es5 or es6 (y.js vs. y.es6) | ||
@@ -107,2 +107,5 @@ // if Insert.execute is a Function, then it isnt a generator.. | ||
function Y (opts/* :YOptions */) /* :Promise<YConfig> */ { | ||
if (opts.sourceDir != null) { | ||
Y.sourceDir = opts.sourceDir | ||
} | ||
opts.types = opts.types != null ? opts.types : [] | ||
@@ -115,3 +118,3 @@ var modules = [opts.db.name, opts.connector.name].concat(opts.types) | ||
setTimeout(function () { | ||
Y.requestModules(modules, opts.sourceDir).then(function () { | ||
Y.requestModules(modules).then(function () { | ||
if (opts == null) reject('An options object is expected! ') | ||
@@ -118,0 +121,0 @@ else if (opts.connector == null) reject('You must specify a connector! (missing connector property)') |
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 too big to display
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances 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
52
5251
817754
3