Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@icewhale/icewhale-files-openapi

Package Overview
Dependencies
Maintainers
3
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icewhale/icewhale-files-openapi - npm Package Compare versions

Comparing version 1.2.0-alpha1 to 1.2.0-alpha12

41

dist/common.js

@@ -138,7 +138,46 @@ "use strict";

return needsSerialization
? JSON.stringify(value !== undefined ? value : {})
? JSON.stringify(value !== undefined ? convertMapsAndSetsToPlain(value) : {})
: (value || "");
};
exports.serializeDataIfNeeded = serializeDataIfNeeded;
function convertMapsAndSetsToPlain(value) {
if (typeof Set === "undefined")
return value;
if (typeof Map === "undefined")
return value;
if (typeof value !== "object" || !value) {
return value;
}
if (value instanceof Set) {
return Array.from(value).map(item => convertMapsAndSetsToPlain(item));
}
if (value instanceof Map) {
const entries = [];
value.forEach((value, key) => {
entries.push([key, convertMapsAndSetsToPlain(value)]);
});
return objectFromEntries(entries);
}
if (Array.isArray(value)) {
return value.map(it => convertMapsAndSetsToPlain(it));
}
return objectFromEntries(objectEntries(value)
.map(([k, v]) => [k, convertMapsAndSetsToPlain(v)]));
}
/**
* Ponyfill for Object.entries
*/
function objectEntries(object) {
return Object.keys(object).map(key => [key, object[key]]);
}
/**
* Ponyfill for Object.fromEntries
*/
function objectFromEntries(entries) {
return [...entries].reduce((object, [key, val]) => {
object[key] = val;
return object;
}, {});
}
/**
*

@@ -145,0 +184,0 @@ * @export

8

package.json
{
"name": "@icewhale/icewhale-files-openapi",
"version": "v1.2.0-alpha1",
"version": "v1.2.0-alpha12",
"scripts": {
"clean": "rm -rf generate",
"build": "rm -rf dist && tsc && yarn clean",
"generate:local": "openapi-generator-cli generate -g typescript-axios -i ./api/files/openapi.yaml -o ./generate",
"generate:npx": "npx @openapitools/openapi-generator-cli generate -g typescript-axios -i ./api/files/openapi.yaml -o ./generate",
"generate:ts": "npx openapi-typescript-codegen --input ./api/files/openapi.yaml --output ./generate",
"generate:local": "openapi-generator-cli generate -g typescript-axios -i ./api/icewhale-files/openapi.yaml -o ./generate",
"generate:npx": "npx @openapitools/openapi-generator-cli generate -g typescript-axios -i ./api/icewhale-files/openapi.yaml -o ./generate",
"generate:ts": "npx openapi-typescript-codegen --input ./api/icewhale-files/openapi.yaml --output ./generate",
"start": "yarn generate:local && yarn build"

@@ -11,0 +11,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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