You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@firebase/component

Package Overview
Dependencies
Maintainers
4
Versions
2562
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/component - npm Package Compare versions

Comparing version

to
0.7.0-20250715195345

dist/esm/index.esm.js

13

dist/index.cjs.js

@@ -125,6 +125,5 @@ 'use strict';

getImmediate(options) {
var _a;
// if multipleInstances is not supported, use the default name
const normalizedIdentifier = this.normalizeInstanceIdentifier(options === null || options === void 0 ? void 0 : options.identifier);
const optional = (_a = options === null || options === void 0 ? void 0 : options.optional) !== null && _a !== void 0 ? _a : false;
const normalizedIdentifier = this.normalizeInstanceIdentifier(options?.identifier);
const optional = options?.optional ?? false;
if (this.isInitialized(normalizedIdentifier) ||

@@ -261,5 +260,5 @@ this.shouldAutoInitialize()) {

onInit(callback, identifier) {
var _a;
const normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);
const existingCallbacks = (_a = this.onInitCallbacks.get(normalizedIdentifier)) !== null && _a !== void 0 ? _a : new Set();
const existingCallbacks = this.onInitCallbacks.get(normalizedIdentifier) ??
new Set();
existingCallbacks.add(callback);

@@ -288,3 +287,3 @@ this.onInitCallbacks.set(normalizedIdentifier, existingCallbacks);

}
catch (_a) {
catch {
// ignore errors in the onInit callback

@@ -318,3 +317,3 @@ }

}
catch (_a) {
catch {
// ignore errors in the onInstanceCreatedCallback

@@ -321,0 +320,0 @@ }

{
"name": "@firebase/component",
"version": "0.6.18",
"version": "0.7.0-20250715195345",
"description": "Firebase Component Platform",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.cjs.js",
"browser": "dist/esm/index.esm2017.js",
"module": "dist/esm/index.esm2017.js",
"browser": "dist/esm/index.esm.js",
"module": "dist/esm/index.esm.js",
"exports": {

@@ -13,3 +13,3 @@ ".": {

"require": "./dist/index.cjs.js",
"default": "./dist/esm/index.esm2017.js"
"default": "./dist/esm/index.esm.js"
},

@@ -35,3 +35,3 @@ "./package.json": "./package.json"

"dependencies": {
"@firebase/util": "1.12.1",
"@firebase/util": "1.13.0-20250715195345",
"tslib": "^2.1.0"

@@ -61,4 +61,4 @@ },

"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
}
}

Sorry, the diff of this file is not supported yet