New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wessberg/di-compiler

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wessberg/di-compiler - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

8

dist/cjs/index.js

@@ -18,5 +18,3 @@ 'use strict';

enumerable: true,
get: function () {
return e[k];
}
get: function () { return e[k]; }
});

@@ -26,3 +24,3 @@ }

}
n['default'] = e;
n["default"] = e;
return Object.freeze(n);

@@ -392,3 +390,3 @@ }

: factory.createNamedImports([
factory.createImportSpecifier(importedSymbol.propertyName === importedSymbol.name
factory.createImportSpecifier(false, importedSymbol.propertyName === importedSymbol.name
? undefined

@@ -395,0 +393,0 @@ : factory.createIdentifier(importedSymbol.propertyName), factory.createIdentifier(importedSymbol.name)),

@@ -364,3 +364,3 @@ import { evaluate } from 'ts-evaluator';

: factory.createNamedImports([
factory.createImportSpecifier(importedSymbol.propertyName === importedSymbol.name
factory.createImportSpecifier(false, importedSymbol.propertyName === importedSymbol.name
? undefined

@@ -367,0 +367,0 @@ : factory.createIdentifier(importedSymbol.propertyName), factory.createIdentifier(importedSymbol.name)),

{
"name": "@wessberg/di-compiler",
"version": "2.2.5",
"version": "2.2.6",
"description": "A Custom Transformer for Typescript that enables compile-time Dependency Injection",

@@ -54,32 +54,28 @@ "scripts": {

"devDependencies": {
"@types/node": "^15.6.1",
"@types/prettier": "^2.2.3",
"@types/semver": "^7.3.6",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"@wessberg/rollup-plugin-ts": "^1.3.14",
"@wessberg/ts-config": "^1.1.2",
"@types/node": "^16.11.9",
"@types/prettier": "^2.4.2",
"@types/semver": "^7.3.9",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@wessberg/ts-config": "^1.1.3",
"rollup-plugin-ts": "^2.0.4",
"semver": "^7.3.5",
"ava": "^3.15.0",
"eslint": "^7.27.0",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsdoc": "^35.0.0",
"husky": "^6.0.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^37.0.3",
"husky": "^7.0.4",
"np": "^7.5.0",
"pnpm": "^6.6.1",
"prettier": "^2.3.0",
"pretty-quick": "^3.1.0",
"pnpm": "^6.22.2",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.50.4",
"sandhog": "^1.0.41",
"rollup": "^2.60.0",
"sandhog": "^1.0.43",
"standard-changelog": "^2.0.27",
"crosspath": "^0.0.8",
"ts-node": "^10.0.0",
"npm-check-updates": "^11.5.13",
"typescript": "^4.3.2",
"typescript-3-0-1": "npm:typescript@3.0.1",
"typescript-3-1-1": "npm:typescript@3.1.1",
"typescript-3-2-1": "npm:typescript@3.2.1",
"typescript-3-3-1": "npm:typescript@3.3.1",
"crosspath": "^1.0.0",
"ts-node": "^10.4.0",
"npm-check-updates": "^12.0.2",
"typescript": "^4.5.2",
"typescript-3-4-1": "npm:typescript@3.4.1",

@@ -94,7 +90,9 @@ "typescript-3-5-1": "npm:typescript@3.5.1",

"typescript-4-2-4": "npm:typescript@4.2.4",
"tslib": "^2.2.0"
"typescript-4-3-5": "npm:typescript@4.3.5",
"typescript-4-4-2": "npm:typescript@4.4.2",
"tslib": "^2.3.1"
},
"dependencies": {
"ts-evaluator": "^0.1.0",
"compatfactory": "^0.0.6"
"compatfactory": "^0.0.12"
},

@@ -101,0 +99,0 @@ "peerDependencies": {

@@ -53,5 +53,5 @@ <!-- SHADOW_SECTION_LOGO_START -->

| <a href="https://usebubbles.com"><img alt="Bubbles" src="https://uploads-ssl.webflow.com/5d682047c28b217055606673/5e5360be16879c1d0dca6514_icon-thin-128x128%402x.png" height="70" /></a> | <a href="https://github.com/cblanc"><img alt="Christopher Blanchard" src="https://avatars0.githubusercontent.com/u/2160685?s=400&v=4" height="70" /></a> | <a href="https://github.com/ideal-postcodes"><img alt="Ideal Postcodes" src="https://avatars.githubusercontent.com/u/4996310?s=200&v=4" height="70" /></a> | <a href="https://www.xerox.com"><img alt="Xerox" src="https://avatars.githubusercontent.com/u/9158512?s=200&v=4" height="70" /></a> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| [Bubbles](https://usebubbles.com)<br><strong>Twitter</strong>: [@usebubbles](https://twitter.com/usebubbles) | [Christopher Blanchard](https://github.com/cblanc) | [Ideal Postcodes](https://github.com/ideal-postcodes) | [Xerox](https://www.xerox.com) |
| <a href="https://usebubbles.com"><img alt="Bubbles" src="https://uploads-ssl.webflow.com/5d682047c28b217055606673/5e5360be16879c1d0dca6514_icon-thin-128x128%402x.png" height="70" /></a> | <a href="https://github.com/cblanc"><img alt="Christopher Blanchard" src="https://avatars0.githubusercontent.com/u/2160685?s=400&v=4" height="70" /></a> | <a href="https://github.com/ideal-postcodes"><img alt="Ideal Postcodes" src="https://avatars.githubusercontent.com/u/4996310?s=200&v=4" height="70" /></a> | <a href="https://www.xerox.com"><img alt="Xerox" src="https://avatars.githubusercontent.com/u/9158512?s=200&v=4" height="70" /></a> | <a href="https://changelog.me"><img alt="Trent Raymond" src="https://avatars.githubusercontent.com/u/1509616?v=4" height="70" /></a> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| [Bubbles](https://usebubbles.com)<br><strong>Twitter</strong>: [@usebubbles](https://twitter.com/usebubbles) | [Christopher Blanchard](https://github.com/cblanc) | [Ideal Postcodes](https://github.com/ideal-postcodes) | [Xerox](https://www.xerox.com) | [Trent Raymond](https://changelog.me) |

@@ -140,8 +140,4 @@ ### Patreon

```typescript
import {
createProgram,
getDefaultCompilerOptions,
createCompilerHost,
} from "typescript";
import { di } from "@wessberg/di-compiler";
import {createProgram, getDefaultCompilerOptions, createCompilerHost} from "typescript";
import {di} from "@wessberg/di-compiler";

@@ -159,3 +155,3 @@ const compilerOptions = getDefaultCompilerOptions();

// Transform the SourceFiles within the program, and pass them through the 'di' transformer
program.emit(undefined, undefined, undefined, undefined, di({ program }));
program.emit(undefined, undefined, undefined, undefined, di({program}));
```

@@ -174,6 +170,6 @@

```typescript
const { di } = require("@wessberg/rollup-plugin-ts");
const {di} = require("@wessberg/rollup-plugin-ts");
require("ts-node").register({
transformers: (program) => di({ program }),
transformers: program => di({program})
});

@@ -183,8 +179,4 @@ ```

```typescript
import {
createProgram,
getDefaultCompilerOptions,
createCompilerHost,
} from "typescript";
import { di } from "@wessberg/di-compiler";
import {createProgram, getDefaultCompilerOptions, createCompilerHost} from "typescript";
import {di} from "@wessberg/di-compiler";

@@ -202,3 +194,3 @@ const compilerOptions = getDefaultCompilerOptions();

// Transform the SourceFiles within the program, and pass them through the 'di' transformer
program.emit(undefined, undefined, undefined, undefined, di({ program }));
program.emit(undefined, undefined, undefined, undefined, di({program}));
```

@@ -217,3 +209,3 @@

import ts from "@wessberg/rollup-plugin-ts";
import { di } from "@wessberg/di-compiler";
import {di} from "@wessberg/di-compiler";

@@ -227,5 +219,5 @@ export default {

ts({
transformers: [di],
}),
],
transformers: [di]
})
]
};

@@ -238,3 +230,3 @@ ```

import ts from "rollup-plugin-typescript2";
import { di } from "@wessberg/di-compiler";
import {di} from "@wessberg/di-compiler";

@@ -248,5 +240,5 @@ export default {

ts({
transformers: [(service) => di({ program: service.getProgram() })],
}),
],
transformers: [service => di({program: service.getProgram()})]
})
]
};

@@ -265,3 +257,3 @@ ```

```typescript
import { di } from "@wessberg/di-compiler";
import {di} from "@wessberg/di-compiler";
const config = {

@@ -277,7 +269,7 @@ // ...

// ...
getCustomTransformers: (program) => di({ program }),
},
},
],
},
getCustomTransformers: program => di({program})
}
}
]
}
// ...

@@ -290,3 +282,3 @@ };

```typescript
import { di } from "@wessberg/di";
import {di} from "@wessberg/di";
const config = {

@@ -302,7 +294,7 @@ // ...

// ...
getCustomTransformers: (program) => di({ program }),
},
},
],
},
getCustomTransformers: program => di({program})
}
}
]
}
// ...

@@ -321,3 +313,3 @@ };

extensions: ["ts"],
require: ["@wessberg/di-compiler/register"],
require: ["@wessberg/di-compiler/register"]
}

@@ -366,5 +358,5 @@ ```

```typescript
import { DIContainer } from "@wessberg/di";
import { MyInterface } from "./my-interface";
import { MyImplementation } from "./my-implementation";
import {DIContainer} from "@wessberg/di";
import {MyInterface} from "./my-interface";
import {MyImplementation} from "./my-implementation";

@@ -381,3 +373,3 @@ const container = new DIContainer();

identifier: `MyInterface`,
implementation: MyImplementation,
implementation: MyImplementation
});

@@ -384,0 +376,0 @@ ```

Sorry, the diff of this file is not supported yet

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