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

@parcel/utils

Package Overview
Dependencies
Maintainers
1
Versions
907
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/utils - npm Package Compare versions

Comparing version 2.0.0-nightly.340 to 2.0.0-nightly.341

12

package.json
{
"name": "@parcel/utils",
"version": "2.0.0-nightly.340+8d643288",
"version": "2.0.0-nightly.341+1f558665",
"description": "Blazing fast, zero configuration web application bundler",

@@ -24,6 +24,6 @@ "license": "MIT",

"@iarna/toml": "^2.2.0",
"@parcel/codeframe": "2.0.0-nightly.340+8d643288",
"@parcel/diagnostic": "2.0.0-nightly.340+8d643288",
"@parcel/logger": "2.0.0-nightly.340+8d643288",
"@parcel/markdown-ansi": "2.0.0-nightly.340+8d643288",
"@parcel/codeframe": "2.0.0-nightly.341+1f558665",
"@parcel/diagnostic": "2.0.0-nightly.341+1f558665",
"@parcel/logger": "2.0.0-nightly.341+1f558665",
"@parcel/markdown-ansi": "2.0.0-nightly.341+1f558665",
"@parcel/source-map": "2.0.0-alpha.4.13",

@@ -50,3 +50,3 @@ "ansi-html": "^0.0.7",

},
"gitHead": "8d64328859b787164e596a2140cccfa320e3a799"
"gitHead": "1f5586657f1ea8660ca1f06abdd75687851ebbb2"
}
// @flow strict-local
let bundleURL: ?string = null;
function getBundleURLCached() {
function getBundleURLCached(): string {
if (bundleURL == null) {

@@ -6,0 +6,0 @@ bundleURL = _getBundleURL();

@@ -12,3 +12,7 @@ // @flow

importWrapperLength: number = 2,
) {
): {|
end: {|column: number, line: number|},
filePath: string,
start: {|column: number, line: number|},
|} {
return {

@@ -15,0 +19,0 @@ filePath: moduleSpecifier,

@@ -11,3 +11,3 @@ // @flow

host: ?string,
) {
): Promise<{|cert: Buffer, key: Buffer|}> {
let certDirectory = cacheDir;

@@ -14,0 +14,0 @@

@@ -8,3 +8,3 @@ // @flow

options: HTTPSOptions,
) {
): Promise<{|cert: Buffer, key: Buffer|}> {
try {

@@ -11,0 +11,0 @@ let cert = await fs.readFile(options.cert);

@@ -11,7 +11,7 @@ // @flow

export function isGlob(p: FilePath) {
export function isGlob(p: FilePath): any {
return _isGlob(normalizeSeparators(p));
}
export function isGlobMatch(filePath: FilePath, glob: Glob) {
export function isGlobMatch(filePath: FilePath, glob: Glob): any {
return isMatch(filePath, normalizeSeparators(glob));

@@ -18,0 +18,0 @@ }

@@ -5,5 +5,8 @@ // @flow strict-local

export default function isDirectoryInside(child: FilePath, parent: FilePath) {
export default function isDirectoryInside(
child: FilePath,
parent: FilePath,
): boolean {
const relative = path.relative(parent, child);
return !relative.startsWith('..') && !path.isAbsolute(relative);
}

@@ -31,4 +31,4 @@ // @flow strict-local

leadingDotSlash: boolean = true,
) {
): FilePath {
return normalizePath(path.relative(from, to), leadingDotSlash);
}
// @flow strict-local
import type {NamedBundle} from '@parcel/types';
import type {FilePath, NamedBundle} from '@parcel/types';

@@ -12,3 +12,3 @@ import path from 'path';

opts: {|leadingDotSlash: boolean|} = {leadingDotSlash: true},
) {
): FilePath {
return relativePath(

@@ -15,0 +15,0 @@ path.dirname(from.filePath),

@@ -9,3 +9,3 @@ // @flow

shouldMinify: boolean = false,
) {
): ?string {
let code = `module.exports = ${serialize(obj)};`;

@@ -12,0 +12,0 @@

@@ -10,3 +10,5 @@ // @flow

export function matchSourceMappingURL(contents: string) {
export function matchSourceMappingURL(
contents: string,
): null | RegExp$matchResult {
return contents.match(SOURCEMAP_RE);

@@ -19,3 +21,3 @@ }

contents: string,
) {
): Promise<?{|filename: string, map: any, url: string|}> {
let match = matchSourceMappingURL(contents);

@@ -22,0 +24,0 @@ if (match) {

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