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

@expo/package-manager

Package Overview
Dependencies
Maintainers
24
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/package-manager - npm Package Compare versions

Comparing version 0.0.1-canary-20231205-250b31f to 0.0.1-canary-20240109-93608d8

4

build/node/BasePackageManager.d.ts

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

import spawnAsync, { SpawnPromise, SpawnResult } from '@expo/spawn-async';
import spawnAsync, { SpawnOptions, SpawnPromise, SpawnResult } from '@expo/spawn-async';
import { PackageManager, PackageManagerOptions } from '../PackageManager';

@@ -26,3 +26,3 @@ import { PendingSpawnPromise } from '../utils/spawn';

protected ensureCwdDefined(method?: string): string;
runAsync(command: string[]): spawnAsync.SpawnPromise<spawnAsync.SpawnResult>;
runAsync(command: string[], options?: SpawnOptions): spawnAsync.SpawnPromise<spawnAsync.SpawnResult>;
versionAsync(): Promise<string>;

@@ -29,0 +29,0 @@ getConfigAsync(key: string): Promise<string>;

@@ -39,11 +39,13 @@ "use strict";

}
runAsync(command) {
runAsync(command, options = {}) {
this.log?.(`> ${this.name} ${command.join(' ')}`);
return (0, spawn_async_1.default)(this.bin, command, this.options);
return (0, spawn_async_1.default)(this.bin, command, { ...this.options, ...options });
}
async versionAsync() {
return await this.runAsync(['--version']).then(({ stdout }) => stdout.trim());
const { stdout } = await this.runAsync(['--version'], { stdio: undefined });
return stdout.trim();
}
async getConfigAsync(key) {
return await this.runAsync(['config', 'get', key]).then(({ stdout }) => stdout.trim());
const { stdout } = await this.runAsync(['config', 'get', key]);
return stdout.trim();
}

@@ -50,0 +52,0 @@ async removeLockfileAsync() {

@@ -21,3 +21,3 @@ import { SpawnOptions, SpawnPromise, SpawnResult } from '@expo/spawn-async';

/** Run any command using the package manager */
runAsync(command: string[]): SpawnPromise<SpawnResult>;
runAsync(command: string[], options?: SpawnOptions): SpawnPromise<SpawnResult>;
/** Get the version of the used package manager */

@@ -24,0 +24,0 @@ versionAsync(): Promise<string>;

{
"name": "@expo/package-manager",
"version": "0.0.1-canary-20231205-250b31f",
"version": "0.0.1-canary-20240109-93608d8",
"description": "A library for installing and finding packages in a project",

@@ -40,3 +40,3 @@ "main": "build/index.js",

"dependencies": {
"@expo/json-file": "0.0.1-canary-20231205-250b31f",
"@expo/json-file": "0.0.1-canary-20240109-93608d8",
"@expo/spawn-async": "^1.5.0",

@@ -50,2 +50,3 @@ "ansi-regex": "^5.0.0",

"npm-package-arg": "^7.0.0",
"ora": "^3.4.0",
"split": "^1.0.1",

@@ -55,8 +56,8 @@ "sudo-prompt": "9.1.1"

"devDependencies": {
"@types/js-yaml": "^3.12.5",
"@types/micromatch": "^4.0.2",
"@types/npm-package-arg": "^6.1.0",
"@types/rimraf": "^3.0.0",
"@types/split": "^1.0.0",
"@types/js-yaml": "^3.12.5",
"@types/micromatch": "^4.0.2",
"expo-module-scripts": "0.0.1-canary-20231205-250b31f"
"expo-module-scripts": "0.0.1-canary-20240109-93608d8"
},

@@ -66,3 +67,3 @@ "publishConfig": {

},
"gitHead": "250b31f516a04578a29c6bcda29aab80ef4d4e2d"
"gitHead": "93608d8dcb0268312e0c8ed22036ebfa6efe9830"
}

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