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

@teleporthq/teleport-postprocessor-prettier-js

Package Overview
Dependencies
Maintainers
5
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-postprocessor-prettier-js - npm Package Compare versions

Comparing version

to
0.10.4

4

dist/cjs/index.js

@@ -24,7 +24,7 @@ "use strict";

var fileType = options.fileType || teleport_types_1.FileType.JS;
var formatOptions = __assign({}, teleport_shared_1.Constants.PRETTIER_CONFIG, options.formatOptions);
var formatOptions = __assign(__assign({}, teleport_shared_1.Constants.PRETTIER_CONFIG), options.formatOptions);
var plugins = [parser_babylon_1.default];
var processor = function (codeChunks) {
if (codeChunks[fileType]) {
codeChunks[fileType] = standalone_1.format(codeChunks[fileType], __assign({}, formatOptions, { plugins: plugins, parser: 'babel' }));
codeChunks[fileType] = standalone_1.format(codeChunks[fileType], __assign(__assign({}, formatOptions), { plugins: plugins, parser: 'babel' }));
}

@@ -31,0 +31,0 @@ else {

{
"name": "@teleporthq/teleport-postprocessor-prettier-js",
"version": "0.10.1",
"version": "0.10.4",
"description": "A post-processing function that formats js code chunks using prettier and the babylon parser",

@@ -29,7 +29,7 @@ "author": "teleportHQ",

"dependencies": {
"@teleporthq/teleport-shared": "^0.10.1",
"@teleporthq/teleport-types": "^0.10.1",
"prettier": "^1.18.2"
"@teleporthq/teleport-shared": "^0.10.4",
"@teleporthq/teleport-types": "^0.10.4",
"prettier": "^1.19.1"
},
"gitHead": "7a290387c6a68eec58f6cc2aac5e5bcdced0184e"
"gitHead": "b5f838aac54b6af2c6bed73e4044ead5b747ecf4"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet