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

@ovotech/ts-compose

Package Overview
Dependencies
Maintainers
248
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.16.0 to 0.17.0-alpha.0

2

dist/node.d.ts

@@ -64,3 +64,3 @@ import * as ts from 'typescript';

multiline?: boolean | undefined;
value?: string | number | boolean | ts.ArrowFunction | ts.Expression | ObjectLiteralValue | null | undefined;
value?: LiteralValue | ts.ArrowFunction | undefined;
isExport?: boolean | undefined;

@@ -67,0 +67,0 @@ isDefault?: boolean | undefined;

{
"name": "@ovotech/ts-compose",
"description": "An ts compiler api wrapper",
"version": "0.16.0",
"version": "0.17.0-alpha.0",
"main": "dist/index.js",

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

"build": "tsc --declaration",
"lint:prettier": "prettier --list-different '{src,test}/**/*.ts'",
"lint:eslint": "eslint '{src,test}/**/*.ts'",
"lint": "yarn lint:prettier && yarn lint:eslint"
"lint": "F='{src,test}/**/*.ts' && prettier --check $F && eslint $F"
},
"devDependencies": {
"@types/jest": "^26.0.16",
"@types/node": "^14.14.10",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.35",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"jest": "^26.6.3",
"prettier": "^2.2.1"
"prettier": "^2.2.1",
"ts-jest": "^26.5.3"
},

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

"dependencies": {
"typescript": "^4.1.2"
"typescript": "^4.2.3"
},
"gitHead": "d1fc26b961d81894472591e0105ad21f20dc7c7d"
"gitHead": "531695a99e3f7d96fd27caca588bd2fd1646c34d"
}

@@ -142,10 +142,6 @@ # TS Compose

*/
const props = mapWithContext(
context,
Object.entries(entity.fields),
(fieldContext, [name, field]) => {
const fieldDoc = toFieldDocument(fieldContext, field);
return document(fieldDoc.context, Type.Prop({ name, type: fieldDoc.type }));
},
);
const props = mapWithContext(context, Object.entries(entity.fields), (fieldContext, [name, field]) => {
const fieldDoc = toFieldDocument(fieldContext, field);
return document(fieldDoc.context, Type.Prop({ name, type: fieldDoc.type }));
});

@@ -161,6 +157,3 @@ const entityInterface = Type.Interface({ name: entity.name, props: props.items });

const rootEntity = toEntityDocument({}, data);
const rootDocument = document(
rootEntity.context,
Type.Alias({ name: 'Root', type: rootEntity.type }),
);
const rootDocument = document(rootEntity.context, Type.Alias({ name: 'Root', type: rootEntity.type }));

@@ -212,3 +205,3 @@ console.log(printDocument(rootDocument));

Deployment is preferment by lerna automatically on merge / push to master, but you'll need to bump the package version numbers yourself. Only updated packages with newer versions will be pushed to the npm registry.
Deployment is preferment by lerna automatically on merge / push to main, but you'll need to bump the package version numbers yourself. Only updated packages with newer versions will be pushed to the npm registry.

@@ -215,0 +208,0 @@ ## Contributing

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