New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

contentful-typescript-codegen

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-typescript-codegen - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

14

dist/contentful-typescript-codegen.js

@@ -350,7 +350,13 @@ #!/usr/bin/env node

return __awaiter(this, void 0, void 0, function () {
var sortedContentTypes, source;
var sortedContentTypes, source, prettierConfig;
return __generator(this, function (_a) {
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); });
source = renderAllContentTypes$1(sortedContentTypes);
return [2 /*return*/, prettier.format(source, { parser: "typescript" })];
switch (_a.label) {
case 0:
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); });
source = renderAllContentTypes$1(sortedContentTypes);
return [4 /*yield*/, prettier.resolveConfig(process.cwd())];
case 1:
prettierConfig = _a.sent();
return [2 /*return*/, prettier.format(source, __assign({}, prettierConfig, { parser: "typescript" }))];
}
});

@@ -357,0 +363,0 @@ });

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -42,7 +53,13 @@ return new (P || (P = Promise))(function (resolve, reject) {

return __awaiter(this, void 0, void 0, function () {
var sortedContentTypes, source;
var sortedContentTypes, source, prettierConfig;
return __generator(this, function (_a) {
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); });
source = renderAllContentTypes(sortedContentTypes);
return [2 /*return*/, prettier_1.format(source, { parser: "typescript" })];
switch (_a.label) {
case 0:
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); });
source = renderAllContentTypes(sortedContentTypes);
return [4 /*yield*/, prettier_1.resolveConfig(process.cwd())];
case 1:
prettierConfig = _a.sent();
return [2 /*return*/, prettier_1.format(source, __assign({}, prettierConfig, { parser: "typescript" }))];
}
});

@@ -49,0 +66,0 @@ });

@@ -10,3 +10,3 @@ {

},
"version": "3.1.0",
"version": "3.1.1",
"main": "dist/contentful-typescript-codegen.js",

@@ -13,0 +13,0 @@ "bin": "./dist/contentful-typescript-codegen.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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