Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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 26 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.