@viewfly/platform-browser 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/index.esm.js +2 -2
- package/bundles/index.js +2 -2
- package/package.json +3 -3
package/bundles/index.esm.js
CHANGED
|
@@ -205,7 +205,7 @@ function createApp(root, config = true) {
|
|
|
205
205
|
else if (typeof config === 'object') {
|
|
206
206
|
Object.assign(c, config);
|
|
207
207
|
}
|
|
208
|
-
return viewfly(Object.assign({ root, nativeRenderer: new DomRenderer() }
|
|
208
|
+
return viewfly(Object.assign(Object.assign({}, c), { root, nativeRenderer: new DomRenderer() }));
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
const forkErrorFn = makeError('fork');
|
|
@@ -224,7 +224,7 @@ function fork(root, config = true) {
|
|
|
224
224
|
catch (_a) {
|
|
225
225
|
throw forkErrorFn('The fork function can only be called synchronously within a component.');
|
|
226
226
|
}
|
|
227
|
-
const app = viewfly(Object.assign({ root, context: injector, nativeRenderer: new DomRenderer() }
|
|
227
|
+
const app = viewfly(Object.assign(Object.assign({}, c), { root, context: injector, nativeRenderer: new DomRenderer() }));
|
|
228
228
|
onUnmounted(() => {
|
|
229
229
|
app.destroy();
|
|
230
230
|
});
|
package/bundles/index.js
CHANGED
|
@@ -207,7 +207,7 @@ function createApp(root, config = true) {
|
|
|
207
207
|
else if (typeof config === 'object') {
|
|
208
208
|
Object.assign(c, config);
|
|
209
209
|
}
|
|
210
|
-
return core.viewfly(Object.assign({ root, nativeRenderer: new DomRenderer() }
|
|
210
|
+
return core.viewfly(Object.assign(Object.assign({}, c), { root, nativeRenderer: new DomRenderer() }));
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
const forkErrorFn = core.makeError('fork');
|
|
@@ -226,7 +226,7 @@ function fork(root, config = true) {
|
|
|
226
226
|
catch (_a) {
|
|
227
227
|
throw forkErrorFn('The fork function can only be called synchronously within a component.');
|
|
228
228
|
}
|
|
229
|
-
const app = core.viewfly(Object.assign({ root, context: injector, nativeRenderer: new DomRenderer() }
|
|
229
|
+
const app = core.viewfly(Object.assign(Object.assign({}, c), { root, context: injector, nativeRenderer: new DomRenderer() }));
|
|
230
230
|
core.onUnmounted(() => {
|
|
231
231
|
app.destroy();
|
|
232
232
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/platform-browser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "This project is used to enable the Viewfly framework to run in a browser.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@viewfly/core": "^0.1.
|
|
15
|
+
"@viewfly/core": "^0.1.1",
|
|
16
16
|
"csstype": "^3.1.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"bugs": {
|
|
34
34
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "d6c54831a96266979af7b95c7152fe7ef2b62a4f"
|
|
37
37
|
}
|