Skip to content

Commit

Permalink
chore(deps): bump emphasize from 6.0.0 to 7.0.0 (#828)
Browse files Browse the repository at this point in the history
* chore(deps): bump emphasize from 6.0.0 to 7.0.0

Bumps [emphasize](https://github.com/wooorm/emphasize) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/wooorm/emphasize/releases)
- [Commits](wooorm/emphasize@6.0.0...7.0.0)

---
updated-dependencies:
- dependency-name: emphasize
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: update emphasize api usage

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kanad Gupta <[email protected]>
  • Loading branch information
dependabot[bot] and kanadgupta authored Dec 4, 2023
1 parent 773e476 commit 26d85ee
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 19 deletions.
63 changes: 47 additions & 16 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"chalk": "^5.3.0",
"ci-info": "^4.0.0",
"commander": "^11.1.0",
"emphasize": "^6.0.0",
"emphasize": "^7.0.0",
"execa": "^8.0.1",
"figures": "^6.0.1",
"httpsnippet-client-api": "file:../httpsnippet-client-api",
Expand Down
6 changes: 4 additions & 2 deletions packages/api/src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { SupportedLanguage } from '../codegen/factory.js';

import chalk from 'chalk';
import { Command, Option } from 'commander';
import { emphasize } from 'emphasize';
import { createEmphasize, common } from 'emphasize';
import figures from 'figures';
import Oas from 'oas';
import ora from 'ora';
Expand All @@ -14,6 +14,8 @@ import promptTerminal from '../lib/prompt.js';
import logger, { oraOptions } from '../logger.js';
import Storage from '../storage.js';

const { highlight } = createEmphasize(common);

interface Options {
identifier?: string;
lang: SupportedLanguage;
Expand Down Expand Up @@ -208,7 +210,7 @@ cmd
logger('');
logger(chalk.bold("👇 Here's an example code snippet you can try out 👇"));
logger('');
logger(emphasize.highlight(language, exampleSnippet).value);
logger(highlight(language, exampleSnippet).value);
}
logger('');
})
Expand Down

0 comments on commit 26d85ee

Please sign in to comment.