Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remix

Package Overview
Dependencies
Maintainers
1
Versions
1071
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix - npm Package Compare versions

Comparing version 0.17.1-pre.3 to 0.17.1-pre.4

4

magic.d.ts
// Copyright © 2021 React Training LLC. All rights reserved.
export declare function installMagicExports(sourceDir: string): Promise<void>;
export declare function installMagicExports(dependencies: {
[name: string]: string;
}, filesDir: string): Promise<void>;

@@ -6,25 +6,23 @@ // Copyright © 2021 React Training LLC. All rights reserved.

var fs = require('fs-extra');
var fse = require('fs-extra');
var path = require('path');
async function installMagicExports(sourceDir) {
let installDir = path.resolve(findClosestNodeModulesDir("remix"), "remix");
await fs.copy(sourceDir, installDir);
async function installMagicExports(dependencies, filesDir) {
let remixDir = path.dirname(require.resolve("remix"));
let packageJsonFile = path.resolve(remixDir, "package.json");
await fse.copy(filesDir, remixDir);
await fse.writeJson(packageJsonFile, assignDependencies(await fse.readJson(packageJsonFile), dependencies), {
spaces: 2
});
}
function findClosestNodeModulesDir(packageName) {
let dir = path.dirname(require.resolve(packageName));
while (path.basename(dir) !== "node_modules") {
let prevDir = dir;
dir = path.dirname(dir);
if (prevDir === dir) {
throw new Error("Cannot find node_modules dir");
}
function assignDependencies(object, dependencies) {
if (!object.dependencies) {
object.dependencies = {};
}
return dir;
Object.assign(object.dependencies, dependencies);
return object;
}
exports.installMagicExports = installMagicExports;
{
"name": "remix",
"description": "A framework for building better websites",
"version": "0.17.1-pre.3",
"version": "0.17.1-pre.4",
"homepage": "https://remix.run",

@@ -6,0 +6,0 @@ "main": "index.js",

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