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

ts-creator

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-creator - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

package.json
{
"name": "ts-creator",
"version": "1.1.0",
"version": "1.1.1",
"description": "A code generator to generate TypeScript code generator from TypeScript code",
"main": "dist/src/index.js",
"types": "dist/types/src",
"main": "dist/index.js",
"types": "dist/types",
"scripts": {

@@ -8,0 +8,0 @@ "build": "tsc -p ./tsconfig.json",

@@ -54,37 +54,32 @@ # ts-creator

```ts
ts.updateSourceFileNode(
ts.createSourceFile('test.ts', '', ts.ScriptTarget.Latest),
ts.createFunctionDeclaration(
undefined,
undefined,
undefined,
ts.createIdentifier('foo'),
undefined,
[
ts.createFunctionDeclaration(
ts.createParameter(
undefined,
undefined,
undefined,
ts.createIdentifier('foo'),
ts.createIdentifier('bar'),
undefined,
[
ts.createParameter(
undefined,
undefined,
undefined,
ts.createKeywordTypeNode(ts.SyntaxKind.NumberKeyword),
undefined
)
],
ts.createKeywordTypeNode(ts.SyntaxKind.NumberKeyword),
ts.createBlock(
[
ts.createReturn(
ts.createBinary(
ts.createIdentifier('bar'),
undefined,
ts.createToken(ts.SyntaxKind.NumberKeyword),
undefined
ts.createToken(ts.SyntaxKind.PlusToken),
ts.createNumericLiteral('1')
)
],
ts.createToken(ts.SyntaxKind.NumberKeyword),
ts.createBlock(
[
ts.createReturn(
ts.createBinary(
ts.createIdentifier('bar'),
ts.createToken(ts.SyntaxKind.PlusToken),
ts.createNumericLiteral('1')
)
)
],
true
)
)
]
],
true
)
)

@@ -105,2 +100,1 @@

- [ ] JSDoc
- [ ] Jsx
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