You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@atlaspack/codeframe

Package Overview
Dependencies
Maintainers
3
Versions
642
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/codeframe - npm Package Compare versions

Comparing version

to
2.13.5-typescript-17c3d1dec.0

lib/codeframe.d.ts

4

lib/codeframe.js

@@ -36,2 +36,6 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// @ts-expect-error emphasize is not typed
// @ts-expect-error slice-ansi is not typed
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;

@@ -38,0 +42,0 @@ const TAB_REPLACE_REGEX = /\t/g;

14

package.json
{
"name": "@atlaspack/codeframe",
"version": "2.13.5-typescript-0c2081aca.0",
"version": "2.13.5-typescript-17c3d1dec.0",
"description": "Blazing fast, zero configuration web application bundler",

@@ -14,4 +14,5 @@ "license": "(MIT OR Apache-2.0)",

},
"main": "lib/codeframe.js",
"source": "src/codeframe.ts",
"main": "./lib/codeframe.js",
"source": "./src/codeframe.ts",
"types": "./lib/codeframe.d.ts",
"engines": {

@@ -34,6 +35,5 @@ "node": ">= 16.0.0"

"scripts": {
"check-ts": "tsc --noEmit"
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
},
"types": "src/codeframe.ts",
"gitHead": "0c2081aca1b5696646874aee2f776d43f1dbe894"
}
"gitHead": "17c3d1decf641e688fcfe3ca985e80e9897b7573"
}
import type {DiagnosticCodeHighlight} from '@atlaspack/diagnostic';
import chalk from 'chalk';
// @ts-expect-error emphasize is not typed
import emphasize from 'emphasize';
import stringWidth from 'string-width';
// @ts-expect-error slice-ansi is not typed
import sliceAnsi from 'slice-ansi';

@@ -7,0 +9,0 @@