Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@journeyapps/cloudcode

Package Overview
Dependencies
Maintainers
2
Versions
504
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@journeyapps/cloudcode - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1-dev.13c6651.4b08857

13

lib/api_db.d.ts
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,

2

lib/CloudCodeEnvironment.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc