
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@skedulo/optimization-manager-client
Advanced tools
This package provides a client for the Optimization Manager API. The client is generated from the OpenAPI spec of the Optimization Manager API.
Also included are some Adapter functions to help with common use cases when working with the Optimization Manager API.
Run yarn install to install the dependencies
Yarn commands:
build - Build the packagegenerate - Run generation for the autogenerated client code using the OpenAPI spec from the Optimization Manager API
dev environmenttest - Run the testsThe client will be generated automatically when commits are made to
Install @skedulo/optimization-manager-client in your project
npm install @skedulo/optimization-manager-client
OR
yarn add @skedulo/optimization-manager-client
Below is a simple example connected function using ScheduleTransformer to override the Optimization
Manager API /schedule endpoint.
import express from 'express';
import {createOptimizationRoutes, TransformerDataShape} from "@skedulo/optimization-manager-client";
import {FunctionRoute, extractAuthorizationInfoFromHeader} from '@skedulo/sdk-utilities'
// tslint:disable-next-line:no-empty-interface
interface RequestPayload {
}
const transform = (data: TransformerInput): TransformerOutput => {
// NOTE: data.passthrough == { customData: true }
const resources = data.featureModel.resources.map((resource) => ({
...resource,
maxDailyTravelTimeInMinutes: resource.maxDailyTravelTimeInMinutes * 2,
}))
return {...data, featureModel: {...data.featureModel, resources}}
}
export function getRoutes(): FunctionRoute[] {
return createOptimizationRoutes(transform, { customData: true })
}
FAQs
Client for optimization manager api calls
The npm package @skedulo/optimization-manager-client receives a total of 179 weekly downloads. As such, @skedulo/optimization-manager-client popularity was classified as not popular.
We found that @skedulo/optimization-manager-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 33 open source maintainers collaborating on the project.
Did you know?

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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.