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

@expo/fingerprint

Package Overview
Dependencies
Maintainers
26
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/fingerprint - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

build/Config.d.ts

4

build/Fingerprint.types.d.ts

@@ -68,2 +68,6 @@ /// <reference types="node" />

}
/**
* Supported options from fingerprint.config.js
*/
export type Config = Pick<Options, 'concurrentIoLimit' | 'hashAlgorithm' | 'extraSources' | 'debug'>;
export interface NormalizedOptions extends Options {

@@ -70,0 +74,0 @@ platforms: NonNullable<Options['platforms']>;

14

build/Options.js

@@ -10,2 +10,3 @@ "use strict";

const path_1 = __importDefault(require("path"));
const Config_1 = require("./Config");
exports.FINGERPRINT_IGNORE_FILENAME = '.fingerprintignore';

@@ -74,8 +75,13 @@ exports.DEFAULT_IGNORE_PATHS = [

async function normalizeOptionsAsync(projectRoot, options) {
const config = await (0, Config_1.loadConfigAsync)(projectRoot, options?.silent ?? false);
return {
// Defaults
platforms: ['android', 'ios'],
concurrentIoLimit: os_1.default.cpus().length,
hashAlgorithm: 'sha1',
ignorePaths: await collectIgnorePathsAsync(projectRoot, options),
// Options from config
...config,
// Explicit options
...options,
platforms: options?.platforms ?? ['android', 'ios'],
concurrentIoLimit: options?.concurrentIoLimit ?? os_1.default.cpus().length,
hashAlgorithm: options?.hashAlgorithm ?? 'sha1',
ignorePaths: await collectIgnorePathsAsync(projectRoot, options),
};

@@ -82,0 +88,0 @@ }

@@ -108,3 +108,3 @@ "use strict";

for (const [key, value] of Object.entries(platformData ?? {})) {
platformData[key] = value.startsWith?.(dependencyRoot) ? path_1.default.relative(root, value) : value;
platformData[key] = value?.startsWith?.(dependencyRoot) ? path_1.default.relative(root, value) : value;
}

@@ -111,0 +111,0 @@ }

{
"name": "@expo/fingerprint",
"version": "0.7.1",
"version": "0.8.0",
"description": "A library to generate a fingerprint from a React Native project",

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

},
"gitHead": "ee4f30ef3b5fa567ad1bf94794197f7683fdd481"
"gitHead": "82b5a4a7ada98ca26cd99d097400b01240cbcf99"
}

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