Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A jsdk client uses axios and typescript
export interface IParameters {
url?: string; // source url
baseURL?: string; // base api url
source?: any; // source text
folder?: string; // main folder
definitionsFolder?: string; // definitions folder
utilsFolder?: string; // utils folder
typesFolder?: string; // types folder
restsFolder?: string; // rests folder
testsFolder?: string; // tests folder
name?: string; // sdk name
suffix?: string; // class suffix
prefix?: string; // class prefix
lib?: typeof LIBRARIES[number]; // axios, fetch, etc
unit?: boolean; // use unit tests - yes/no
responseType?: boolean; // use response type - yes/no, if no - use any as default
splitMethods?: boolean; // split methods to different files or combine in 1
splitDefinitions?: boolean; // split definitions to different files or combine in 1
splitTests?: boolean; // split tests to different files or combine in 1
modelMode?: 'class' | 'interface'; // model mode - class or interface
useStaticMethod?: boolean; // use static methods or use regular methods
methodNameMode?: 'id' | 'path'; // mode: id = simple method{N} name, path - path based name
http?: IDictionary<string>; // get, post, put, delete associations
methods?: IDictionary<string>; // list of methods associations
datas?: IDatas; // list of datas associations for tests
groups?: IDictionary<string>; // list of groups associations
pathsFilters?: string[]; // list of paths filters
groupsFilters?: string[]; // list of groups filters
format?: (data: string) => string; // format function
}
const defaultOptions: IParameters = {
baseURL: '',
folder: 'services',
definitionsFolder: 'definitions',
restsFolder: 'rests',
typesFolder: 'types',
utilsFolder: 'utils',
testsFolder: '__tests__',
prefix: '',
suffix: 'Service',
methods: {},
datas: {},
pathsFilters: ['**'],
groupsFilters: ['**'],
lib: 'axios',
unit: true,
modelMode: 'interface',
useStaticMethod: true,
methodNameMode: 'path',
splitMethods: true,
splitDefinitions: true,
splitTests: true,
responseType: true,
http: {
get: 'get',
post: 'post',
put: 'put',
head: 'head',
delete: 'delete',
options: 'options',
patch: 'patch',
link: 'link',
unlink: 'unlink',
},
}
FAQs
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
The npm package dfin-jsdk receives a total of 2 weekly downloads. As such, dfin-jsdk popularity was classified as not popular.
We found that dfin-jsdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.