
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
ms-rest-ssrf-fixed
Advanced tools
Client Runtime for Node.js client libraries generated using AutoRest
Infrastructure for serialization/deserialization, error handling, tracing, and http client pipeline configuration. Required by nodeJS client libraries generated using AutoRest.
npm install ms-rest
var msrest = require('ms-rest');
Features
Type checking
Validation of specified constraints
Flattening/Unflattening properties
Default Values
Model Properties marked as constant are set during serialization, irrespective of they being provided or not
Required check (If a model or property is marked required and is not provided in the object then an error is thrown)
Readonly check (If a model or property is marked readonly then it is not sent on the wire during, serialization)
Serializing Constant values
serialize an array of dictionary of primitive values
var mapper = {
type : {
name: 'Sequence',
element: {
type : {
name: 'Dictionary',
value: {
type: {
name: 'Boolean'
}
}
}
}
}
};
var array = [{ 1: true }, { 2: false }, { 1: true, 2: false, 3: true }];
var serializedArray = msRest.serialize(mapper, array, 'arrayObj');
assert.deepEqual(array, serializedArray);
var serializedProduct = msrest.serialize(mapper, productObj, 'productObject');
var deserializedArray = msRest.deserialize(mapper, serializedArray, 'serializedArrayObj');
For more examples on serialization/deserialization with complex types please take a look over here.
FAQs
Client Runtime for Node.js client libraries generated using AutoRest
We found that ms-rest-ssrf-fixed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.