Socket
Socket
Sign inDemoInstall

cypress-firebase

Package Overview
Dependencies
177
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.2 to 2.2.3

6

lib-esm/attachCustomCommands.d.ts

@@ -15,3 +15,3 @@ import type { firestore } from 'firebase-admin';

*/
export declare type FirestoreAction = 'get' | 'add' | 'set' | 'update' | 'delete';
export type FirestoreAction = 'get' | 'add' | 'set' | 'update' | 'delete';
/**

@@ -23,3 +23,3 @@ * Data from loaded fixture

}
declare type WhereOptions = [string, FirebaseFirestore.WhereFilterOp, any];
type WhereOptions = [string, FirebaseFirestore.WhereFilterOp, any];
/**

@@ -67,3 +67,3 @@ * Options for callFirestore custom Cypress command.

*/
export declare type RTDBAction = 'push' | 'remove' | 'set' | 'update' | 'delete' | 'get';
export type RTDBAction = 'push' | 'remove' | 'set' | 'update' | 'delete' | 'get';
/**

@@ -70,0 +70,0 @@ * Options for callRtdb commands

@@ -16,3 +16,3 @@ export interface CypressEnvironmentOptions {

}
export declare type ExtendedCypressConfig = Partial<Cypress.PluginConfigOptions> & ExtendedCypressConfigBase;
export type ExtendedCypressConfig = Partial<Cypress.PluginConfigOptions> & ExtendedCypressConfigBase;
export interface ExtendWithFirebaseConfigSettings {

@@ -19,0 +19,0 @@ localBaseUrl?: string;

@@ -91,3 +91,8 @@ import { slashPathToFirestoreRef, deleteCollection, isDocPath, } from './firebase-utils';

const value = Array.isArray(currData)
? currData.map((dataItem) => convertValueToTimestampOrGeoPointIfPossible(dataItem, firestoreStatics))
? currData.map((dataItem) => {
const result = convertValueToTimestampOrGeoPointIfPossible(dataItem, firestoreStatics);
return result.constructor === Object
? getDataWithTimestampsAndGeoPoints(result, firestoreStatics)
: result;
})
: convertValueToTimestampOrGeoPointIfPossible(currData, firestoreStatics);

@@ -94,0 +99,0 @@ return {

@@ -15,3 +15,3 @@ import type { firestore } from 'firebase-admin';

*/
export declare type FirestoreAction = 'get' | 'add' | 'set' | 'update' | 'delete';
export type FirestoreAction = 'get' | 'add' | 'set' | 'update' | 'delete';
/**

@@ -23,3 +23,3 @@ * Data from loaded fixture

}
declare type WhereOptions = [string, FirebaseFirestore.WhereFilterOp, any];
type WhereOptions = [string, FirebaseFirestore.WhereFilterOp, any];
/**

@@ -67,3 +67,3 @@ * Options for callFirestore custom Cypress command.

*/
export declare type RTDBAction = 'push' | 'remove' | 'set' | 'update' | 'delete' | 'get';
export type RTDBAction = 'push' | 'remove' | 'set' | 'update' | 'delete' | 'get';
/**

@@ -70,0 +70,0 @@ * Options for callRtdb commands

@@ -16,3 +16,3 @@ export interface CypressEnvironmentOptions {

}
export declare type ExtendedCypressConfig = Partial<Cypress.PluginConfigOptions> & ExtendedCypressConfigBase;
export type ExtendedCypressConfig = Partial<Cypress.PluginConfigOptions> & ExtendedCypressConfigBase;
export interface ExtendWithFirebaseConfigSettings {

@@ -19,0 +19,0 @@ localBaseUrl?: string;

@@ -94,3 +94,8 @@ "use strict";

const value = Array.isArray(currData)
? currData.map((dataItem) => convertValueToTimestampOrGeoPointIfPossible(dataItem, firestoreStatics))
? currData.map((dataItem) => {
const result = convertValueToTimestampOrGeoPointIfPossible(dataItem, firestoreStatics);
return result.constructor === Object
? getDataWithTimestampsAndGeoPoints(result, firestoreStatics)
: result;
})
: convertValueToTimestampOrGeoPointIfPossible(currData, firestoreStatics);

@@ -97,0 +102,0 @@ return {

{
"name": "cypress-firebase",
"version": "2.2.2",
"version": "2.2.3",
"description": "Utilities to help testing Firebase projects with Cypress.",

@@ -38,11 +38,11 @@ "main": "lib/index.js",

"@tsconfig/node12": "1.0.11",
"@types/chai": "4.3.1",
"@types/chai": "4.3.4",
"@types/mocha": "9.1.1",
"@types/node": "16.11.43",
"@types/sinon-chai": "3.2.8",
"@typescript-eslint/eslint-plugin": "5.28.0",
"@typescript-eslint/parser": "5.28.0",
"chai": "4.3.6",
"cypress": "10.3.0",
"eslint": "8.19.0",
"@types/node": "16.18.9",
"@types/sinon-chai": "3.2.9",
"@typescript-eslint/eslint-plugin": "5.30.5",
"@typescript-eslint/parser": "5.30.5",
"chai": "4.3.7",
"cypress": "10.11.0",
"eslint": "8.29.0",
"eslint-config-airbnb-base": "15.0.0",

@@ -53,3 +53,3 @@ "eslint-config-prettier": "8.5.0",

"eslint-plugin-jsdoc": "37.9.7",
"eslint-plugin-jsx-a11y": "6.6.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "4.2.1",

@@ -62,3 +62,3 @@ "firebase-admin": "10.3.0",

"nyc": "15.1.0",
"prettier": "2.7.1",
"prettier": "2.8.1",
"rimraf": "3.0.2",

@@ -68,4 +68,4 @@ "sinon": "13.0.2",

"size-limit": "7.0.3",
"ts-node": "10.8.2",
"typescript": "4.7.4"
"ts-node": "10.9.1",
"typescript": "4.9.4"
},

@@ -72,0 +72,0 @@ "keywords": [

@@ -43,6 +43,6 @@ # cypress-firebase

baseUrl: 'http://localhost:3000',
supportFile: 'cypress/support/e2e/index.js',
// NOTE: Make supportFile exists if separate location is provided
setupNodeEvents(on, config) {
cypressFirebasePlugin(on, config, admin);
// e2e testing node events setup code
return cypressFirebasePlugin(on, config, admin);
},

@@ -65,3 +65,3 @@ },

baseUrl: 'http://localhost:3000',
supportFile: 'cypress/support/e2e/index.js',
// NOTE: Make supportFile exists if separate location is provided
setupNodeEvents(on, config) {

@@ -184,3 +184,3 @@ cypressFirebasePlugin(on, config, admin);

To specify a tenant ID, either pass the ID as a parameter to `cy.login`, or set it as environment variable `TEST_TENANT_ID`. Read more about [Firebase multi-tenancy](https://firebase.google.com/docs/reference/admin/node/admin.auth.Tenant).
To specify a tenant ID, either pass the ID as a parameter to `cy.login`, or set it as environment variable `TEST_TENANT_ID`. Read more about [Firebase multi-tenancy](https://cloud.google.com/identity-platform/docs/multi-tenancy-authentication).

@@ -187,0 +187,0 @@ ##### Examples

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc