@vyr/service-scene 0.0.25 → 0.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyr/service-scene",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -1,9 +1,8 @@
1
- import axios from 'axios'
2
1
  import { Service } from '@vyr/service'
3
2
  import { DraggableData, DraggableEndType, } from '@vyr/declare'
4
3
  import { Descriptor, DeserializationObject } from '@vyr/engine'
5
4
  import { runtime, SidebarNavigator } from '@vyr/runtime'
6
- import { Message, RpcService, UseRecord } from '@vyr/service-rpc'
5
+ import { request, Message, RpcService, UseRecord } from '@vyr/service-rpc'
7
6
  import { SceneMethodProvider } from './SceneMethodProvider'
8
7
 
9
8
  class SceneService extends Service {
@@ -63,7 +62,7 @@ class SceneService extends Service {
63
62
  }
64
63
 
65
64
  async download(scene?: string) {
66
- const res = await axios.get(Message.scene.download.Method, { params: new Message.scene.download.RequestMessage(scene), responseType: 'blob' })
65
+ const res = await request.get(Message.scene.download.Method, { params: new Message.scene.download.RequestMessage(scene), responseType: 'blob' })
67
66
 
68
67
  const url = URL.createObjectURL(res.data)
69
68
  const download = document.createElement('a')