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

ts-poet

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-poet - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

1

build/index.d.ts

@@ -10,2 +10,3 @@ import { Import } from './Import';

export declare function arrayOf(...elements: unknown[]): Node;
export declare function joinCode(chunks: Code[], separator?: string): Code;
/** Creates an import that will be auto-imported at the top of the output file. */

@@ -12,0 +13,0 @@ export declare function imp(spec: string, opts?: {

@@ -27,2 +27,10 @@ "use strict";

exports.arrayOf = arrayOf;
function joinCode(chunks, separator = '') {
const literals = [''];
for (let i = 0; i < chunks.length - 1; i++) {
literals.push(separator);
}
return new Code_1.Code(literals, chunks);
}
exports.joinCode = joinCode;
/** Creates an import that will be auto-imported at the top of the output file. */

@@ -29,0 +37,0 @@ function imp(spec, opts = {}) {

2

package.json
{
"name": "ts-poet",
"version": "4.1.0",
"version": "4.2.0",
"description": "code generation DSL for TypeScript",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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