@journeyapps/cloudcode
Advanced tools
Comparing version 1.9.0 to 1.9.1-dev.13c6651.4b08857
import { DatabaseAuth } from './DatabaseAuth'; | ||
import { Database } from 'journeyapps/lib/db/database'; | ||
export declare function createDB(baseUrl: string, instance: string, auth: DatabaseAuth): Database; | ||
import { DatabaseObject, Database } from 'journeyapps/lib/db/database'; | ||
import { Collection } from 'journeyapps/lib'; | ||
export declare function createDB(baseUrl: string, instance: string, auth: DatabaseAuth): GenericDatabase; | ||
/** | ||
@@ -8,1 +9,9 @@ * Hydrate an object from JSON. | ||
export declare function hydrateObject(db: Database, data: any): any; | ||
export declare type GenericDatabaseObject = DatabaseObject & { | ||
[key: string]: any; | ||
}; | ||
interface GenericDatabaseCollections { | ||
[type: string]: Collection<GenericDatabaseObject>; | ||
} | ||
export declare type GenericDatabase = Database & GenericDatabaseCollections; | ||
export {}; |
@@ -33,2 +33,3 @@ 'use strict'; | ||
let url = `${baseUrl}/api/v4/${instance}`; | ||
// Return as GenericDatabase so it can be casted to any specific database. | ||
return OnlineDB_1.OnlineDB({ | ||
@@ -35,0 +36,0 @@ baseUrl: url, |
@@ -35,3 +35,3 @@ interface ScheduleTaskOptions { | ||
*/ | ||
createDB(baseUrl: string, instanceId: string, auth?: DatabaseAuth): import("journeyapps/lib/db/database").Database; | ||
createDB(baseUrl: string, instanceId: string, auth?: DatabaseAuth): import("./api_db").GenericDatabase; | ||
/** | ||
@@ -38,0 +38,0 @@ * Schedule a task for execution. |
{ | ||
"name": "@journeyapps/cloudcode", | ||
"version": "1.9.0", | ||
"version": "1.9.1-dev.13c6651.4b08857", | ||
"main": "./lib/index.js", | ||
@@ -30,3 +30,3 @@ "types": "./lib/index.d.ts", | ||
], | ||
"gitHead": "a725c7495929f89b9c115d3890a46214faba1875" | ||
"gitHead": "8dc88eee5dcbdf03b85e129d11eecaaa0cdec75e" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
149514
2632
2