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 2.0.0 to 2.1.0

6

dts/constants.d.ts

@@ -7,3 +7,4 @@ export declare const ROOT: string;

export declare const IGNORE_LIST: string[];
export declare const TS_EXT_PATTERN = "{ts,tsx,cts,mts}";
export declare const EXTENSIONS: string[];
export declare const EXTENSIONS_PATTERN: string;
export declare const ALL_FILES_GLOB: string;

@@ -14,4 +15,5 @@ export declare const SOURCE_FILES_GLOB: string;

export declare const TESTS_LIST: string[];
export declare const NON_TS_REGEX = "\\.{css,sass,scss,less,gif,png,jpg,jpeg,svg,gql,graphql,yml,yaml}$";
export declare const NON_JS_REGEX = "\\.(css|sass|scss|less|gif|png|jpg|jpeg|svg|gql|graphql|yml|yaml)$";
export declare const ALL_JS_REGEX: string;
export declare const TS_PATH_PREFIX_REGEX = "^:[a-z]";
//# sourceMappingURL=constants.d.ts.map

@@ -10,6 +10,9 @@ 'use strict';

exports.ALL_FILES_GLOB = constants.ALL_FILES_GLOB;
exports.ALL_JS_REGEX = constants.ALL_JS_REGEX;
exports.CASE_SENSITIVE = constants.CASE_SENSITIVE;
exports.ECMA_VERSION = constants.ECMA_VERSION;
exports.EXTENSIONS = constants.EXTENSIONS;
exports.EXTENSIONS_PATTERN = constants.EXTENSIONS_PATTERN;
exports.IGNORE_LIST = constants.IGNORE_LIST;
exports.NON_TS_REGEX = constants.NON_TS_REGEX;
exports.NON_JS_REGEX = constants.NON_JS_REGEX;
exports.PACKAGE_JSON_PATH = constants.PACKAGE_JSON_PATH;

@@ -22,4 +25,3 @@ exports.ROOT = constants.ROOT;

exports.TSCONFIG_JSON_PATH = constants.TSCONFIG_JSON_PATH;
exports.TS_EXT_PATTERN = constants.TS_EXT_PATTERN;
exports.TS_PATH_PREFIX_REGEX = constants.TS_PATH_PREFIX_REGEX;
//# sourceMappingURL=constants.js.map

@@ -24,20 +24,26 @@ 'use strict';

const IGNORE_LIST = ['node_modules/', 'build/', 'cjs/', 'coverage/', 'dist/', 'dts/', 'esm/', 'lib/', 'mjs/', 'umd/']; // Globs for finding source files, test files, and test utility files
const IGNORE_LIST = ['node_modules/', 'build/', 'cjs/', 'coverage/', 'dist/', 'dts/', 'esm/', 'lib/', 'mjs/', 'umd/']; // Supported file extenes
const TS_EXT_PATTERN = '{ts,tsx,cts,mts}';
const ALL_FILES_GLOB = `**/{src,tests,__tests__}/**/*.${TS_EXT_PATTERN}`;
const SOURCE_FILES_GLOB = `**/src/**/*.${TS_EXT_PATTERN}`;
const TEST_FILES_GLOB = `**/{tests,__tests__}/**/*.test.${TS_EXT_PATTERN}`;
const TEST_UTILS_GLOB = `**/{tests,__tests__}/**/*.${TS_EXT_PATTERN}`; // List of globs to find all test related files
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 TESTS_LIST = [TEST_FILES_GLOB, TEST_UTILS_GLOB, `test.${TS_EXT_PATTERN}`]; // Pattern of non-JS/TS file extensions
const ALL_FILES_GLOB = `**/{src,tests,__tests__}/**/*.{${EXTENSIONS_PATTERN}}`;
const SOURCE_FILES_GLOB = `**/src/**/*.{${EXTENSIONS_PATTERN}}`;
const TEST_FILES_GLOB = `**/{tests,__tests__}/**/*.test.{${EXTENSIONS_PATTERN}}`;
const TEST_UTILS_GLOB = `**/{tests,__tests__}/**/*.{${EXTENSIONS_PATTERN}}`; // List of globs to find all test related files
const NON_TS_REGEX = '\\.{css,sass,scss,less,gif,png,jpg,jpeg,svg,gql,graphql,yml,yaml}$'; // Pattern to find all custom TypeScript paths
const TESTS_LIST = [TEST_FILES_GLOB, TEST_UTILS_GLOB, `test.{${EXTENSIONS_PATTERN}}`]; // Pattern of file extensions
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 TS_PATH_PREFIX_REGEX = '^:[a-z]';
exports.ALL_FILES_GLOB = ALL_FILES_GLOB;
exports.ALL_JS_REGEX = ALL_JS_REGEX;
exports.CASE_SENSITIVE = CASE_SENSITIVE;
exports.ECMA_VERSION = ECMA_VERSION;
exports.EXTENSIONS = EXTENSIONS;
exports.EXTENSIONS_PATTERN = EXTENSIONS_PATTERN;
exports.IGNORE_LIST = IGNORE_LIST;
exports.NON_TS_REGEX = NON_TS_REGEX;
exports.NON_JS_REGEX = NON_JS_REGEX;
exports.PACKAGE_JSON_PATH = PACKAGE_JSON_PATH;

@@ -50,4 +56,3 @@ exports.ROOT = ROOT;

exports.TSCONFIG_JSON_PATH = TSCONFIG_JSON_PATH;
exports.TS_EXT_PATTERN = TS_EXT_PATTERN;
exports.TS_PATH_PREFIX_REGEX = TS_PATH_PREFIX_REGEX;
//# sourceMappingURL=constants2.js.map

@@ -14,6 +14,9 @@ 'use strict';

exports.ALL_FILES_GLOB = constants.ALL_FILES_GLOB;
exports.ALL_JS_REGEX = constants.ALL_JS_REGEX;
exports.CASE_SENSITIVE = constants.CASE_SENSITIVE;
exports.ECMA_VERSION = constants.ECMA_VERSION;
exports.EXTENSIONS = constants.EXTENSIONS;
exports.EXTENSIONS_PATTERN = constants.EXTENSIONS_PATTERN;
exports.IGNORE_LIST = constants.IGNORE_LIST;
exports.NON_TS_REGEX = constants.NON_TS_REGEX;
exports.NON_JS_REGEX = constants.NON_JS_REGEX;
exports.PACKAGE_JSON_PATH = constants.PACKAGE_JSON_PATH;

@@ -26,3 +29,2 @@ exports.ROOT = constants.ROOT;

exports.TSCONFIG_JSON_PATH = constants.TSCONFIG_JSON_PATH;
exports.TS_EXT_PATTERN = constants.TS_EXT_PATTERN;
exports.TS_PATH_PREFIX_REGEX = constants.TS_PATH_PREFIX_REGEX;

@@ -29,0 +31,0 @@ exports.getPackageVersion = helpers.getPackageVersion;

@@ -12,6 +12,9 @@ 'use strict';

exports.ALL_FILES_GLOB = constants.ALL_FILES_GLOB;
exports.ALL_JS_REGEX = constants.ALL_JS_REGEX;
exports.CASE_SENSITIVE = constants.CASE_SENSITIVE;
exports.ECMA_VERSION = constants.ECMA_VERSION;
exports.EXTENSIONS = constants.EXTENSIONS;
exports.EXTENSIONS_PATTERN = constants.EXTENSIONS_PATTERN;
exports.IGNORE_LIST = constants.IGNORE_LIST;
exports.NON_TS_REGEX = constants.NON_TS_REGEX;
exports.NON_JS_REGEX = constants.NON_JS_REGEX;
exports.PACKAGE_JSON_PATH = constants.PACKAGE_JSON_PATH;

@@ -24,3 +27,2 @@ exports.ROOT = constants.ROOT;

exports.TSCONFIG_JSON_PATH = constants.TSCONFIG_JSON_PATH;
exports.TS_EXT_PATTERN = constants.TS_EXT_PATTERN;
exports.TS_PATH_PREFIX_REGEX = constants.TS_PATH_PREFIX_REGEX;

@@ -27,0 +29,0 @@ exports.getPackageVersion = helpers.getPackageVersion;

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

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

},
"gitHead": "ee97e740c3829fac112151ce2f28da5a5e0e26c8"
"gitHead": "afa68ed1be037ef856f38c982781fe85f2fcb5d6"
}

@@ -29,16 +29,20 @@ import path from 'path';

// Supported file extenes
export const EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'];
export const EXTENSIONS_PATTERN = EXTENSIONS.map((ext) => ext.slice(1)).join(',');
// Globs for finding source files, test files, and test utility files
export const TS_EXT_PATTERN = '{ts,tsx,cts,mts}';
export const ALL_FILES_GLOB = `**/{src,tests,__tests__}/**/*.${TS_EXT_PATTERN}`;
export const SOURCE_FILES_GLOB = `**/src/**/*.${TS_EXT_PATTERN}`;
export const TEST_FILES_GLOB = `**/{tests,__tests__}/**/*.test.${TS_EXT_PATTERN}`;
export const TEST_UTILS_GLOB = `**/{tests,__tests__}/**/*.${TS_EXT_PATTERN}`;
export const ALL_FILES_GLOB = `**/{src,tests,__tests__}/**/*.{${EXTENSIONS_PATTERN}}`;
export const SOURCE_FILES_GLOB = `**/src/**/*.{${EXTENSIONS_PATTERN}}`;
export const TEST_FILES_GLOB = `**/{tests,__tests__}/**/*.test.{${EXTENSIONS_PATTERN}}`;
export const TEST_UTILS_GLOB = `**/{tests,__tests__}/**/*.{${EXTENSIONS_PATTERN}}`;
// List of globs to find all test related files
export const TESTS_LIST = [TEST_FILES_GLOB, TEST_UTILS_GLOB, `test.${TS_EXT_PATTERN}`];
export const TESTS_LIST = [TEST_FILES_GLOB, TEST_UTILS_GLOB, `test.{${EXTENSIONS_PATTERN}}`];
// Pattern of non-JS/TS file extensions
export const NON_TS_REGEX = '\\.{css,sass,scss,less,gif,png,jpg,jpeg,svg,gql,graphql,yml,yaml}$';
// Pattern of file extensions
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, '|')})$`;
// 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