New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@hatsa/firestore

Package Overview
Dependencies
Maintainers
1
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hatsa/firestore

latest
npmnpm
Version
0.8.105
Version published
Weekly downloads
38
-52.5%
Maintainers
1
Weekly downloads
 
Created
Source

Firecode migrator supports operation as set, update and updateWithDerivedData.

Examples:

updateWithDerivedData:

module.exports = (firestore) => {
    return {
        query: firestore.collection('boards'),
        runCloudFunctions: false,
        runWithFirecode: {
            op: 'updateWithDerivedData',
            docDataModifier: (snap) => {
                const { title, _slug } = snap.data();
                return {
                    customField: `${title} ${_slug}`,
                };
            },
            maxConcurrentBatchCount: 10,
        },
    };
};

remove:

const sentinels = require('../../../sentinel');
module.exports = (firestore) => {
    const { delete: deleteField } = sentinels(firestore);
    return {
        query: firestore.collection('boards'),
        runCloudFunctions: false,
        runWithFirecode: {
            op: 'set',
            docData: {
                column_orders: deleteField(),
                visible_columns: deleteField(),
            },
            maxConcurrentBatchCount: 10,
            docOptions: { merge: true },
        },
    };
};

update

module.exports = (firestore) => {
    return {
        query: firestore.collection('boards'),
        runCloudFunctions: false,
        runWithFirecode: {
            op: 'set',
            docData: {
                newName: 'test',
            },
            maxConcurrentBatchCount: 10,
            docOptions: { merge: true },
        },
    };
};

FAQs

Package last updated on 25 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts