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

@beemo/config-constants

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beemo/config-constants - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

4

lib/constants.js

@@ -7,3 +7,3 @@ 'use strict';

var path = require('path');
const path = require('path');

@@ -16,3 +16,3 @@ function _interopDefaultLegacy(e) {

var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
const path__default = /*#__PURE__*/_interopDefaultLegacy(path);

@@ -19,0 +19,0 @@ const ROOT = process.env.BEEMO_ROOT || process.cwd();

@@ -7,3 +7,3 @@ 'use strict';

var constants = require('./constants.js');
const constants = require('./constants.js');

@@ -33,3 +33,3 @@ let packageJson;

const pkg = getRootPackageJSON();
const version = (_pkg$engines = pkg.engines) == null ? void 0 : _pkg$engines.node;
const version = (_pkg$engines = pkg.engines) === null || _pkg$engines === void 0 ? void 0 : _pkg$engines.node;

@@ -55,9 +55,20 @@ if (version) {

try {
// eslint-disable-next-line import/no-extraneous-dependencies
const pkg = require('react/package.json');
reactVersion = Number.parseFloat(pkg.version);
return reactVersion;
} catch {
reactVersion = 0;
}
try {
var _ref, _pkg$dependencies$rea, _pkg$dependencies, _pkg$devDependencies, _pkg$peerDependencies;
const pkg = getRootPackageJSON();
const version = (_ref = (_pkg$dependencies$rea = (_pkg$dependencies = pkg.dependencies) == null ? void 0 : _pkg$dependencies.react) != null ? _pkg$dependencies$rea : (_pkg$devDependencies = pkg.devDependencies) == null ? void 0 : _pkg$devDependencies.react) != null ? _ref : (_pkg$peerDependencies = pkg.peerDependencies) == null ? void 0 : _pkg$peerDependencies.react;
const version = (_ref = (_pkg$dependencies$rea = (_pkg$dependencies = pkg.dependencies) === null || _pkg$dependencies === void 0 ? void 0 : _pkg$dependencies.react) !== null && _pkg$dependencies$rea !== void 0 ? _pkg$dependencies$rea : (_pkg$devDependencies = pkg.devDependencies) === null || _pkg$devDependencies === void 0 ? void 0 : _pkg$devDependencies.react) !== null && _ref !== void 0 ? _ref : (_pkg$peerDependencies = pkg.peerDependencies) === null || _pkg$peerDependencies === void 0 ? void 0 : _pkg$peerDependencies.react;
if (version) {
reactVersion = Number.parseFloat(version.replace(/[^\d.]+/g, ''));
return reactVersion;
}

@@ -64,0 +75,0 @@ } catch {

@@ -7,5 +7,5 @@ 'use strict';

var constants = require('./constants.js');
const constants = require('./constants.js');
var helpers = require('./helpers.js');
const helpers = require('./helpers.js');

@@ -12,0 +12,0 @@ exports.ALL_FILES_GLOB = constants.ALL_FILES_GLOB;

{
"name": "@beemo/config-constants",
"version": "0.2.0",
"version": "1.0.0",
"release": "1624590167003",
"description": "Reusable constants for Beemo configurations.",

@@ -27,4 +28,4 @@ "keywords": [

"engines": {
"node": ">=10.3.0",
"npm": ">=6.1.0"
"node": ">=12.17.0",
"npm": ">=6.13.0"
},

@@ -36,5 +37,6 @@ "funding": {

"packemon": {
"format": "lib",
"platform": "node"
},
"gitHead": "08bd3709adb492cbcaefbc84ff870cce1ed655ea"
"gitHead": "881955d65db6206c4956c320a6263417fe9835cb"
}

@@ -59,2 +59,13 @@ import type { ProjectReference } from 'typescript';

try {
// eslint-disable-next-line import/no-extraneous-dependencies
const pkg = require('react/package.json') as { version: string };
reactVersion = Number.parseFloat(pkg.version);
return reactVersion;
} catch {
reactVersion = 0;
}
try {
const pkg = getRootPackageJSON();

@@ -66,2 +77,4 @@ const version =

reactVersion = Number.parseFloat(version.replace(/[^\d.]+/g, ''));
return reactVersion;
}

@@ -68,0 +81,0 @@ } catch {

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