Skip to content

Commit

Permalink
fix(deps): upgrade add-variable-declarations
Browse files Browse the repository at this point in the history
* build(deps): bump magic-string from 0.26.7 to 0.30.0

Bumps [magic-string](https://github.com/rich-harris/magic-string) from 0.26.7 to 0.30.0.
- [Release notes](https://github.com/rich-harris/magic-string/releases)
- [Changelog](https://github.com/Rich-Harris/magic-string/blob/master/CHANGELOG.md)
- [Commits](Rich-Harris/magic-string@v0.26.7...v0.30.0)

---
updated-dependencies:
- dependency-name: magic-string
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: upgrade `add-variable-declarations`

`add-variable-declarations@6` uses a compatible version of `magic-string`.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Donovan <1938+eventualbuddha@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and eventualbuddha committed Feb 23, 2023
1 parent 915a325 commit 277d0b4
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 38 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -72,7 +72,7 @@
"@resugar/codemod-objects-destructuring": "^1.0.1",
"@resugar/codemod-objects-shorthand": "^1.0.1",
"@resugar/codemod-strings-template": "^1.0.1",
"add-variable-declarations": "^4.0.7",
"add-variable-declarations": "^6.0.0",
"automatic-semicolon-insertion": "^3.0.2",
"coffee-lex": "^9.3.2",
"decaffeinate-coffeescript": "1.12.7-patch.4",
Expand All @@ -81,7 +81,7 @@
"detect-indent": "^4.0.0",
"is-ci-cli": "^2.2.0",
"lines-and-columns": "^2.0.3",
"magic-string": "^0.26.2",
"magic-string": "^0.30.0",
"mz": "^2.7.0",
"tslib": "^2.4.0"
},
Expand Down
161 changes: 129 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/stages/add-variable-declarations/index.ts
@@ -1,4 +1,4 @@
import addVariableDeclarations from 'add-variable-declarations';
import { addVariableDeclarations } from 'add-variable-declarations';
import MagicString from 'magic-string';
import { StageResult } from '../../index';
import { logger } from '../../utils/debug';
Expand Down
3 changes: 1 addition & 2 deletions test/expansion_test.ts
Expand Up @@ -635,8 +635,7 @@ describe('expansion', () => {
[a, , b] = [1, , 3]
`,
`
let a, b;
[a, , b] = [1, , 3];
const [a, , b] = [1, , 3];
`
);
});
Expand Down
2 changes: 1 addition & 1 deletion test/utils/resolveToPatchError_test.ts
@@ -1,4 +1,4 @@
import addVariableDeclarations from 'add-variable-declarations';
import { addVariableDeclarations } from 'add-variable-declarations';
import assert, { ok, strictEqual } from 'assert';
import MagicString from 'magic-string';

Expand Down

0 comments on commit 277d0b4

Please sign in to comment.