Socket
Socket
Sign inDemoInstall

@anatine/esbuild-decorators

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anatine/esbuild-decorators - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

package.json
{
"name": "@anatine/esbuild-decorators",
"version": "0.2.1",
"version": "0.2.2",
"description": "Esbuild plugin for Nx to handle emitDecoratorMetadata",

@@ -36,5 +36,5 @@ "repository": {

"peerDependencies": {
"esbuild": "^0.9.6"
"esbuild": "^0.9.7"
},
"typings": "src/index.d.ts"
}

@@ -0,1 +1,2 @@

import type { Plugin } from 'esbuild';
export interface EsbuildDecoratorsOptions {

@@ -7,5 +8,2 @@ tsconfig?: string;

}
export declare const esbuildDecorators: (options?: EsbuildDecoratorsOptions) => {
name: string;
setup(build: any): void;
};
export declare const esbuildDecorators: (options?: EsbuildDecoratorsOptions) => Plugin;

@@ -15,7 +15,9 @@ "use strict";

setup(build) {
var _a, _b, _c, _d, _e;
var _a, _b, _c;
const cwd = options.cwd || process.cwd();
const tsconfigPath = (_c = (_a = options.tsconfig) !== null && _a !== void 0 ? _a : (_b = build.initialOptions) === null || _b === void 0 ? void 0 : _b.tsconfig) !== null && _c !== void 0 ? _c : path_1.join(cwd, './tsconfig.json');
const forceTsc = (_d = options.force) !== null && _d !== void 0 ? _d : false;
const tsx = (_e = options.tsx) !== null && _e !== void 0 ? _e : true;
const tsconfigPath = options.tsconfig ||
((_a = build.initialOptions) === null || _a === void 0 ? void 0 : _a.tsconfig) ||
path_1.join(cwd, './tsconfig.json');
const forceTsc = (_b = options.force) !== null && _b !== void 0 ? _b : false;
const tsx = (_c = options.tsx) !== null && _c !== void 0 ? _c : true;
let parsedTsConfig = null;

@@ -22,0 +24,0 @@ build.onLoad({ filter: tsx ? /\.tsx?$/ : /\.ts$/ }, (args) => tslib_1.__awaiter(this, void 0, void 0, function* () {

Sorry, the diff of this file is not supported yet

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