amf-client-js 4.7.7-RC.0 → 4.7.8
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/amf.js +9279 -9275
- package/package.json +1 -1
- package/typings/amf-client-js.d.ts +10 -0
package/package.json
CHANGED
|
@@ -196,10 +196,20 @@ declare module 'amf-client-js' {
|
|
|
196
196
|
abstract fetch(resource: string): Promise<client.remote.Content>
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
export abstract class BaseFileResourceLoader implements resource.ResourceLoader {
|
|
200
|
+
accepts(resource: string): boolean
|
|
201
|
+
|
|
202
|
+
abstract fetch(resource: string): Promise<client.remote.Content>
|
|
203
|
+
}
|
|
204
|
+
|
|
199
205
|
export class JsBrowserHttpResourceLoader extends BaseHttpResourceLoader {
|
|
200
206
|
fetch(resource: string): Promise<client.remote.Content>
|
|
201
207
|
}
|
|
202
208
|
|
|
209
|
+
export class JsServerFileResourceLoader extends BaseFileResourceLoader {
|
|
210
|
+
fetch(resource: string): Promise<client.remote.Content>
|
|
211
|
+
}
|
|
212
|
+
|
|
203
213
|
namespace org {
|
|
204
214
|
|
|
205
215
|
namespace mulesoft {
|