New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.1.0 to 2.2.0

1

dts/constants.d.ts

@@ -8,2 +8,3 @@ export declare const ROOT: string;

export declare const EXTENSIONS: string[];
export declare const EXTENSIONS_WITHOUT_DOT: string[];
export declare const EXTENSIONS_PATTERN: string;

@@ -10,0 +11,0 @@ export declare const ALL_FILES_GLOB: string;

@@ -15,2 +15,3 @@ 'use strict';

exports.EXTENSIONS_PATTERN = constants.EXTENSIONS_PATTERN;
exports.EXTENSIONS_WITHOUT_DOT = constants.EXTENSIONS_WITHOUT_DOT;
exports.IGNORE_LIST = constants.IGNORE_LIST;

@@ -17,0 +18,0 @@ exports.NON_JS_REGEX = constants.NON_JS_REGEX;

6

lib/constants2.js

@@ -27,3 +27,4 @@ 'use strict';

const EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'];
const EXTENSIONS_PATTERN = EXTENSIONS.map(ext => ext.slice(1)).join(','); // Globs for finding source files, test files, and test utility files
const EXTENSIONS_WITHOUT_DOT = EXTENSIONS.map(ext => ext.slice(1));
const EXTENSIONS_PATTERN = EXTENSIONS_WITHOUT_DOT.join(','); // Globs for finding source files, test files, and test utility files

@@ -38,3 +39,3 @@ const ALL_FILES_GLOB = `**/{src,tests,__tests__}/**/*.{${EXTENSIONS_PATTERN}}`;

const NON_JS_REGEX = '\\.(css|sass|scss|less|gif|png|jpg|jpeg|svg|gql|graphql|yml|yaml)$';
const ALL_JS_REGEX = `\\.(${EXTENSIONS_PATTERN.replace(/,/g, '|')})$`; // Pattern to find all custom TypeScript paths
const ALL_JS_REGEX = `\\.(${EXTENSIONS_WITHOUT_DOT.join('|')})$`; // Pattern to find all custom TypeScript paths

@@ -48,2 +49,3 @@ const TS_PATH_PREFIX_REGEX = '^:[a-z]';

exports.EXTENSIONS_PATTERN = EXTENSIONS_PATTERN;
exports.EXTENSIONS_WITHOUT_DOT = EXTENSIONS_WITHOUT_DOT;
exports.IGNORE_LIST = IGNORE_LIST;

@@ -50,0 +52,0 @@ exports.NON_JS_REGEX = NON_JS_REGEX;

@@ -19,2 +19,3 @@ 'use strict';

exports.EXTENSIONS_PATTERN = constants.EXTENSIONS_PATTERN;
exports.EXTENSIONS_WITHOUT_DOT = constants.EXTENSIONS_WITHOUT_DOT;
exports.IGNORE_LIST = constants.IGNORE_LIST;

@@ -21,0 +22,0 @@ exports.NON_JS_REGEX = constants.NON_JS_REGEX;

@@ -17,2 +17,3 @@ 'use strict';

exports.EXTENSIONS_PATTERN = constants.EXTENSIONS_PATTERN;
exports.EXTENSIONS_WITHOUT_DOT = constants.EXTENSIONS_WITHOUT_DOT;
exports.IGNORE_LIST = constants.IGNORE_LIST;

@@ -19,0 +20,0 @@ exports.NON_JS_REGEX = constants.NON_JS_REGEX;

{
"name": "@beemo/config-constants",
"version": "2.1.0",
"version": "2.2.0",
"release": "1624590167003",

@@ -39,3 +39,3 @@ "description": "Reusable constants for Beemo configurations.",

},
"gitHead": "afa68ed1be037ef856f38c982781fe85f2fcb5d6"
"gitHead": "c85367390ba5d741bc803fb6f04fc8d2251ab4cf"
}

@@ -31,3 +31,4 @@ import path from 'path';

export const EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'];
export const EXTENSIONS_PATTERN = EXTENSIONS.map((ext) => ext.slice(1)).join(',');
export const EXTENSIONS_WITHOUT_DOT = EXTENSIONS.map((ext) => ext.slice(1));
export const EXTENSIONS_PATTERN = EXTENSIONS_WITHOUT_DOT.join(',');

@@ -45,5 +46,5 @@ // Globs for finding source files, test files, and test utility files

export const NON_JS_REGEX = '\\.(css|sass|scss|less|gif|png|jpg|jpeg|svg|gql|graphql|yml|yaml)$';
export const ALL_JS_REGEX = `\\.(${EXTENSIONS_PATTERN.replace(/,/g, '|')})$`;
export const ALL_JS_REGEX = `\\.(${EXTENSIONS_WITHOUT_DOT.join('|')})$`;
// Pattern to find all custom TypeScript paths
export const TS_PATH_PREFIX_REGEX = '^:[a-z]';

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