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

@embroider/shared-internals

Package Overview
Dependencies
Maintainers
7
Versions
411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@embroider/shared-internals - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1-unstable.137fcab

2

package.json
{
"name": "@embroider/shared-internals",
"version": "2.0.0",
"version": "2.0.1-unstable.137fcab",
"private": false,

@@ -5,0 +5,0 @@ "description": "Utilities shared among the other embroider packages",

export { AppMeta, AddonMeta, PackageInfo } from './metadata';
export { explicitRelative, extensionsPattern } from './paths';
export { explicitRelative, extensionsPattern, unrelativize } from './paths';
export { getOrCreate } from './get-or-create';

@@ -4,0 +4,0 @@ export { default as Package, V2AddonPackage as AddonPackage, V2AppPackage as AppPackage, V2Package } from './package';

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -20,6 +16,7 @@ if (k2 === undefined) k2 = k;

Object.defineProperty(exports, "__esModule", { value: true });
exports.templateColocationPlugin = exports.hbsToJS = exports.tmpdir = exports.packageName = exports.babelFilter = exports.PackageCache = exports.Package = exports.getOrCreate = exports.extensionsPattern = exports.explicitRelative = void 0;
exports.templateColocationPlugin = exports.hbsToJS = exports.tmpdir = exports.packageName = exports.babelFilter = exports.PackageCache = exports.Package = exports.getOrCreate = exports.unrelativize = exports.extensionsPattern = exports.explicitRelative = void 0;
var paths_1 = require("./paths");
Object.defineProperty(exports, "explicitRelative", { enumerable: true, get: function () { return paths_1.explicitRelative; } });
Object.defineProperty(exports, "extensionsPattern", { enumerable: true, get: function () { return paths_1.extensionsPattern; } });
Object.defineProperty(exports, "unrelativize", { enumerable: true, get: function () { return paths_1.unrelativize; } });
var get_or_create_1 = require("./get-or-create");

@@ -26,0 +23,0 @@ Object.defineProperty(exports, "getOrCreate", { enumerable: true, get: function () { return get_or_create_1.getOrCreate; } });

@@ -14,3 +14,2 @@ declare type Filename = string;

};
'resolvable-extensions': string[];
'root-url': string;

@@ -17,0 +16,0 @@ version: 2;

@@ -5,4 +5,11 @@ "use strict";

function absolutePackageName(specifier) {
if (specifier[0] === '.' || (0, path_1.isAbsolute)(specifier)) {
// Not an absolute specifier
if (
// relative paths:
specifier[0] === '.' ||
// webpack-specific microsyntax for internal requests:
specifier[0] === '!' ||
specifier[0] === '-' ||
// absolute paths:
(0, path_1.isAbsolute)(specifier)) {
// Does not refer to a package
return;

@@ -9,0 +16,0 @@ }

@@ -0,2 +1,4 @@

import type Package from './package';
export declare function explicitRelative(fromDir: string, toFile: string): string;
export declare function extensionsPattern(extensions: string[]): RegExp;
export declare function unrelativize(pkg: Package, specifier: string, fromFile: string): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extensionsPattern = exports.explicitRelative = void 0;
exports.unrelativize = exports.extensionsPattern = exports.explicitRelative = void 0;
const path_1 = require("path");

@@ -34,2 +34,13 @@ // by "explicit", I mean that we want "./local/thing" instead of "local/thing"

exports.extensionsPattern = extensionsPattern;
function unrelativize(pkg, specifier, fromFile) {
if (pkg.packageJSON.exports) {
throw new Error(`unsupported: engines cannot use package.json exports`);
}
let result = (0, path_1.resolve)((0, path_1.dirname)(fromFile), specifier).replace(pkg.root, pkg.name);
if (path_1.sep !== '/') {
result = result.split(path_1.sep).join('/');
}
return result;
}
exports.unrelativize = unrelativize;
//# sourceMappingURL=paths.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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