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

@lokalise/background-jobs-common

Package Overview
Dependencies
Maintainers
10
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lokalise/background-jobs-common - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

dist/background-job-processor/processors/spy/BackgroundJobProcessorSpy.d.ts

@@ -13,5 +13,7 @@ import type { JobFinalState, SafeJob } from '../../types';

* Adds a job processing result and resolves any promises waiting for a matching job in the given final state.
* Note: This method is not exposed on BackgroundJobProcessorSpyInterface, it is intended to be
* Note: This method is not exposed on {@link BackgroundJobProcessorSpyInterface}, it is intended to be
* a private package method
*
* JobData is cloned, to be protected against purge after the job is completed.
*
* @param job - The job to be added or updated.

@@ -18,0 +20,0 @@ * @param state - Final state of the job.

@@ -44,5 +44,7 @@ "use strict";

* Adds a job processing result and resolves any promises waiting for a matching job in the given final state.
* Note: This method is not exposed on BackgroundJobProcessorSpyInterface, it is intended to be
* Note: This method is not exposed on {@link BackgroundJobProcessorSpyInterface}, it is intended to be
* a private package method
*
* JobData is cloned, to be protected against purge after the job is completed.
*
* @param job - The job to be added or updated.

@@ -55,3 +57,4 @@ * @param state - Final state of the job.

return;
this.jobProcessingResults.set(job.id, { job, state });
const clonedJobData = (0, node_core_1.deepClone)(job.data);
this.jobProcessingResults.set(job.id, { job: { ...job, data: clonedJobData }, state });
if (this.promises.length === 0)

@@ -58,0 +61,0 @@ return;

{
"name": "@lokalise/background-jobs-common",
"version": "2.0.1",
"version": "2.0.2",
"files": [

@@ -5,0 +5,0 @@ "dist",

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