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

@ovotech/ts-compose

Package Overview
Dependencies
Maintainers
131
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ovotech/ts-compose - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

2

dist/docs.js

@@ -6,5 +6,5 @@ "use strict";

.split('\n')
.map(line => ` * ${line}`)
.map((line) => ` * ${line}`)
.join('\n')}\n `;
exports.addJSDoc = (node, doc) => ts.addSyntheticLeadingComment(node, ts.SyntaxKind.MultiLineCommentTrivia, jsDoc(doc), true);
exports.withJSDoc = (doc, node) => doc === undefined ? node : exports.addJSDoc(node, doc);

@@ -32,3 +32,3 @@ "use strict";

const mergeImportNamed = (source, destin) => [
...source.filter(item => !destin.find(destinItem => destinItem.name === item.name)),
...source.filter((item) => !destin.find((destinItem) => destinItem.name === item.name)),
...destin,

@@ -70,7 +70,7 @@ ];

...headers,
...imports.map(item => print_1.printNode(node_1.Node.Import(item))),
...imports.map((item) => print_1.printNode(node_1.Node.Import(item))),
print_1.printNode(doc.type),
...identifiers.map(identifier => print_1.printNode(identifier)),
...namespaces.map(namespace => print_1.printNode(namespace)),
...identifiers.map((identifier) => print_1.printNode(identifier)),
...namespaces.map((namespace) => print_1.printNode(namespace)),
].join('\n\n') + '\n');
};

@@ -9,3 +9,3 @@ "use strict";

Import: ({ named, allAs, defaultAs, module, }) => ts.createImportDeclaration(undefined, undefined, ts.createImportClause(defaultAs ? exports.Node.Identifier(defaultAs) : undefined, named
? ts.createNamedImports(named.map(item => ts.createImportSpecifier(item.as ? exports.Node.Identifier(item.name) : undefined, item.as ? exports.Node.Identifier(item.as) : exports.Node.Identifier(item.name))))
? ts.createNamedImports(named.map((item) => ts.createImportSpecifier(item.as ? exports.Node.Identifier(item.name) : undefined, item.as ? exports.Node.Identifier(item.as) : exports.Node.Identifier(item.name))))
: allAs

@@ -19,3 +19,3 @@ ? ts.createNamespaceImport(exports.Node.Identifier(allAs))

else if (typeof value === 'object') {
return ts.createObjectLiteral(Object.keys(value).map(key => ts.createPropertyAssignment(key, exports.Node.Literal({ value: value[key], multiline }))), multiline);
return ts.createObjectLiteral(Object.keys(value).map((key) => ts.createPropertyAssignment(key, exports.Node.Literal({ value: value[key], multiline }))), multiline);
}

@@ -22,0 +22,0 @@ else {

{
"name": "@ovotech/ts-compose",
"description": "An ts compiler api wrapper",
"version": "0.11.0",
"version": "0.11.1",
"main": "dist/index.js",

@@ -13,3 +13,3 @@ "types": "dist/index.d.ts",

"build": "tsc --declaration",
"lint:prettier": "prettier --list-different {src,test}/**/*.ts",
"lint:prettier": "prettier --list-different '{src,test}/**/*.ts'",
"lint:eslint": "eslint '{src,test}/**/*.ts'",

@@ -19,10 +19,10 @@ "lint": "yarn lint:prettier && yarn lint:eslint"

"devDependencies": {
"@types/jest": "^25.1.3",
"@types/node": "^13.7.6",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"@types/jest": "^25.1.5",
"@types/node": "^13.11.0",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"jest": "^25.1.0",
"prettier": "^1.19.1"
"eslint-config-prettier": "^6.10.1",
"jest": "^25.2.6",
"prettier": "^2.0.2"
},

@@ -33,5 +33,5 @@ "jest": {

"dependencies": {
"typescript": "^3.8.2"
"typescript": "^3.8.3"
},
"gitHead": "4eb3fa7f1183f88b7114c5bf129a9611a7e63328"
"gitHead": "21d742566be6e33b9bfe5d81c2b05af8343c44a9"
}
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