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

@dtsgenerator/replace-namespace

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dtsgenerator/replace-namespace - npm Package Compare versions

Comparing version 1.5.2 to 1.5.4

5

index.js

@@ -359,4 +359,7 @@ "use strict";

var state = _c.value;
var modifiers = dtsgenerator_1.ts.canHaveModifiers(state)
? dtsgenerator_1.ts.getModifiers(state)
: undefined;
Object.assign(state, {
modifiers: replaceModifiers(state.modifiers),
modifiers: replaceModifiers(modifiers),
});

@@ -363,0 +366,0 @@ }

9

index.ts

@@ -312,3 +312,3 @@ import { ts, Plugin, PluginContext } from 'dtsgenerator';

}
function packEntityName(names: string[]): ts.EntityName {
function packEntityName(names: readonly string[]): ts.EntityName {
let result: ts.EntityName = ts.factory.createIdentifier(names[0]);

@@ -326,3 +326,3 @@ for (let i = 1; i < names.length; i++) {

function replaceModifiers(
modifiers?: ts.ModifiersArray
modifiers?: readonly ts.Modifier[]
): ts.ModifiersArray {

@@ -350,4 +350,7 @@ const result: ts.Modifier[] = [];

for (const state of root.statements) {
const modifiers = ts.canHaveModifiers(state)
? ts.getModifiers(state)
: undefined;
Object.assign<typeof state, Partial<typeof state>>(state, {
modifiers: replaceModifiers(state.modifiers),
modifiers: replaceModifiers(modifiers),
});

@@ -354,0 +357,0 @@ }

{
"name": "@dtsgenerator/replace-namespace",
"version": "1.5.2",
"version": "1.5.4",
"description": "replace the namespace names",

@@ -37,19 +37,19 @@ "main": "index.js",

"devDependencies": {
"@dtsgenerator/eslint-config": "^0.6.0",
"@types/mocha": "^9.1.0",
"@types/node": "^16.11.26",
"@dtsgenerator/eslint-config": "^0.6.4",
"@types/mocha": "^10.0.1",
"@types/node": "^16.18.10",
"cross-env": "^7.0.3",
"dtsgenerator": "^3.15.1",
"eslint": "^8.12.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.7",
"mocha": "^9.2.2",
"dtsgenerator": "^3.16.1",
"eslint": "^8.30.0",
"husky": "^8.0.2",
"lint-staged": "^13.1.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^2.6.2",
"prettier": "^2.8.1",
"rimraf": "^3.0.2",
"ts-node": "^10.7.0"
"ts-node": "^10.9.1"
},
"peerDependencies": {
"dtsgenerator": "^3.15.1",
"tslib": "^2.3.1"
"dtsgenerator": "^3.16.1",
"tslib": "^2.4.1"
},

@@ -56,0 +56,0 @@ "lint-staged": {

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