New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

firebase-api-surface

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-api-surface - npm Package Compare versions

Comparing version

to
0.7.3

lib.rslsc

6

lib/app.d.ts
import { FirebaseOptions as FirebaseClientOptions } from "@firebase/app-types";
import { IFirebaseDatabase } from "./rtdb";
import { FirebaseMessaging as FirebaseClientMessaging } from "./messaging";
import { FirebaseStorage as FirebaseClientStorage } from "./storage";
export interface FirebaseAdminOptions {

@@ -30,4 +28,4 @@ credential?: IAdminCredentialAccessor;

firestore?: () => any;
messaging?: () => FirebaseClientMessaging | any;
storage?: () => FirebaseClientStorage | any;
messaging?: () => any;
storage?: () => any;
}
{
"name": "firebase-api-surface",
"version": "0.7.2",
"version": "0.7.3",
"description": "the publically exposed firebase API",

@@ -38,3 +38,3 @@ "license": "MIT",

"rimraf": "^2.6.2",
"shelljs": "^0.8.1",
"async-shelljs": "^0.1.2",
"test-console": "^1.1.0",

@@ -41,0 +41,0 @@ "tslint": "^5.9.1",

// tslint:disable:no-implicit-dependencies
import chalk from "chalk";
import { exec } from "shelljs";
import { exec } from "async-shelljs";
import * as rm from "rimraf";

@@ -5,0 +5,0 @@ import * as process from "process";

// tslint:disable:no-implicit-dependencies
import chalk from "chalk";
import { exec } from "shelljs";
import { asyncExec } from "async-shelljs";
import * as rm from "rimraf";
exec(`ts-node scripts/build.ts --color=true`, code => {
if (code === 0) {
exec(
'yarn publish --new-version `node -p "require("./package.json").version"`',
(publishCode: any) => {
if (publishCode === 0) {
console.log(chalk.green.bold(`- published to npm successfully 👍\n`));
} else {
console.log(
chalk.red.bold(
`\n- problems publishing to npm: ${publishCode} 😡 `
)
);
}
}
(async () => {
try {
await asyncExec(`ts-node scripts/build.ts --color=true`);
} catch (e) {
throw new Error(`- failed to build so no attempt to deploy [${e.code}]`);
}
console.log(chalk.yellow.bold("- starting deployment"));
const currentVersion = String(
await asyncExec(`node -p 'require("./package.json").version'`, {
silent: true
})
).trim();
console.log(
chalk.dim(
`- In your ${chalk.bold.white("package.json")} the current version is`,
currentVersion
)
);
const info: any = JSON.parse(
await asyncExec(`yarn info --json`, { silent: true })
);
const npmVersion = info.data.version.trim();
console.log(
chalk.dim(
`- The latest published version on ${chalk.bold("npm")} is`,
npmVersion
)
);
if (currentVersion === npmVersion) {
console.log(
chalk.red.bold(
`- Versions are the same, update your package.json before deploying 💩`
)
);
} else {
try {
await asyncExec(`yarn publish --new-version ${currentVersion}`);
console.log(chalk.green.bold(`- published to npm successfully 👍\n`));
} catch (e) {
console.log(
chalk.red.bold(`\n- problems publishing to npm: ${e.code} 😡 `)
);
}
}
});
})();
// tslint:disable:no-implicit-dependencies
import chalk from "chalk";
import { exec } from "shelljs";
import { exec } from "async-shelljs";
import * as rm from "rimraf";

@@ -5,0 +5,0 @@ import * as process from "process";

@@ -6,5 +6,5 @@ import {

import { IFirebaseDatabase } from "./rtdb";
import { IFirebaseFirestore } from "./firestore";
import { FirebaseMessaging as FirebaseClientMessaging } from "./messaging";
import { FirebaseStorage as FirebaseClientStorage } from "./storage";
// import { IFirebaseFirestore } from "./firestore";
// import { FirebaseMessaging as FirebaseClientMessaging } from "./messaging";
// import { FirebaseStorage as FirebaseClientStorage } from "./storage";

@@ -61,5 +61,5 @@ export interface FirebaseAdminOptions {

/** returns the messaging API */
messaging?: () => FirebaseClientMessaging | any;
messaging?: () => any;
/** returns the storage API */
storage?: () => FirebaseClientStorage | any;
storage?: () => any;
}