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

@tapjs/test

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tapjs/test - npm Package Compare versions

Comparing version 0.0.0-20 to 0.0.0-21

5

package.json
{
"name": "@tapjs/test",
"version": "0.0.0-20",
"version": "0.0.0-21",
"description": "the pluggable Test class for node-tap",

@@ -54,6 +54,7 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me)",

"tap": {
"typecheck": false,
"coverage-map": "map.js"
},
"peerDependencies": {
"@tapjs/core": "0.0.0-20"
"@tapjs/core": "0.0.0-21"
},

@@ -60,0 +61,0 @@ "dependencies": {

@@ -178,3 +178,8 @@ //{{HEADER COMMENT START}}

//{{LOADERS START}}
// these are always added with --loader
export const loaders = []
// these are added with --import, if available
export const importLoaders = []
// these are added with --loader, only if --import is unavailable
export const loaderFallbacks = []
//{{LOADERS END}}

@@ -181,0 +186,0 @@

@@ -216,2 +216,12 @@ import { PromiseWithSubtest, TapPlugin, TestBase, TestBaseOpts } from '@tapjs/core';

/**
* The set of `importLoader` strings exported by plugins, for use with
* `Module.register` in node v20.6 and higher.
*/
export declare const importLoaders: string[];
/**
* All `loader` strings exported by plugins, including fallbacks provided
* for those that also export an `importLoader`
*/
export declare const loaderFallbacks: string[];
/**
* The string signature that lists all loaded plugins alphabetically, used

@@ -218,0 +228,0 @@ * to determine whether a rebuild is necessary by comparing it to the `plugin`

30

test-built/dist/cjs/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Test = exports.signature = exports.loaders = exports.config = exports.testFileExtensions = void 0;
exports.Test = exports.signature = exports.loaderFallbacks = exports.importLoaders = exports.loaders = exports.config = exports.testFileExtensions = void 0;
const core_1 = require("@tapjs/core");

@@ -176,6 +176,12 @@ //{{PLUGIN IMPORT START}}

//{{LOADERS START}}
// // these are always added with --loader
// export const loaders = []
// // these are added with --import, if available
// export const importLoaders = []
// // these are added with --loader, only if --import is unavailable
// export const loaderFallbacks = []
const preloaders = new Set([
"ts-node/esm"
]);
const preimports = new Set([]);
/**

@@ -187,5 +193,25 @@ * The set of `loader` strings exported by plugins. If a plugin exports

exports.loaders = [
"ts-node/esm"
].sort((a, b) => preloaders.has(a) && !preloaders.has(b) ? -1
: !preloaders.has(a) && preloaders.has(b) ? 1
: 0);
/**
* The set of `importLoader` strings exported by plugins, for use with
* `Module.register` in node v20.6 and higher.
*/
exports.importLoaders = [
"@tapjs/mock/import"
].sort((a, b) => preimports.has(a) && !preimports.has(b) ? -1
: !preimports.has(a) && preimports.has(b) ? 1
: 0);
/**
* All `loader` strings exported by plugins, including fallbacks provided
* for those that also export an `importLoader`
*/
exports.loaderFallbacks = [
"@tapjs/mock/loader",
"ts-node/esm"
].sort((a, b) => preloaders.has(a) ? -1 : preloaders.has(b) ? 1 : 0);
].sort((a, b) => preloaders.has(a) && !preloaders.has(b) ? -1
: !preloaders.has(a) && preloaders.has(b) ? 1
: 0);
//{{LOADERS END}}

@@ -192,0 +218,0 @@ /**

@@ -216,2 +216,12 @@ import { PromiseWithSubtest, TapPlugin, TestBase, TestBaseOpts } from '@tapjs/core';

/**
* The set of `importLoader` strings exported by plugins, for use with
* `Module.register` in node v20.6 and higher.
*/
export declare const importLoaders: string[];
/**
* All `loader` strings exported by plugins, including fallbacks provided
* for those that also export an `importLoader`
*/
export declare const loaderFallbacks: string[];
/**
* The string signature that lists all loaded plugins alphabetically, used

@@ -218,0 +228,0 @@ * to determine whether a rebuild is necessary by comparing it to the `plugin`

@@ -148,6 +148,12 @@ //{{HEADER COMMENT START}}

//{{LOADERS START}}
// // these are always added with --loader
// export const loaders = []
// // these are added with --import, if available
// export const importLoaders = []
// // these are added with --loader, only if --import is unavailable
// export const loaderFallbacks = []
const preloaders = new Set([
"ts-node/esm"
]);
const preimports = new Set([]);
/**

@@ -159,5 +165,25 @@ * The set of `loader` strings exported by plugins. If a plugin exports

export const loaders = [
"ts-node/esm"
].sort((a, b) => preloaders.has(a) && !preloaders.has(b) ? -1
: !preloaders.has(a) && preloaders.has(b) ? 1
: 0);
/**
* The set of `importLoader` strings exported by plugins, for use with
* `Module.register` in node v20.6 and higher.
*/
export const importLoaders = [
"@tapjs/mock/import"
].sort((a, b) => preimports.has(a) && !preimports.has(b) ? -1
: !preimports.has(a) && preimports.has(b) ? 1
: 0);
/**
* All `loader` strings exported by plugins, including fallbacks provided
* for those that also export an `importLoader`
*/
export const loaderFallbacks = [
"@tapjs/mock/loader",
"ts-node/esm"
].sort((a, b) => preloaders.has(a) ? -1 : preloaders.has(b) ? 1 : 0);
].sort((a, b) => preloaders.has(a) && !preloaders.has(b) ? -1
: !preloaders.has(a) && preloaders.has(b) ? 1
: 0);
//{{LOADERS END}}

@@ -164,0 +190,0 @@ /**

@@ -278,3 +278,8 @@ //{{HEADER COMMENT START}}

//{{LOADERS START}}
// // these are always added with --loader
// export const loaders = []
// // these are added with --import, if available
// export const importLoaders = []
// // these are added with --loader, only if --import is unavailable
// export const loaderFallbacks = []
const preloaders = new Set<string>([

@@ -284,2 +289,4 @@ "ts-node/esm"

const preimports = new Set<string>([])
/**

@@ -291,7 +298,34 @@ * The set of `loader` strings exported by plugins. If a plugin exports

export const loaders: string[] = [
"ts-node/esm"
].sort(
(a, b) => preloaders.has(a) && !preloaders.has(b) ? -1
: !preloaders.has(a) && preloaders.has(b) ? 1
: 0
)
/**
* The set of `importLoader` strings exported by plugins, for use with
* `Module.register` in node v20.6 and higher.
*/
export const importLoaders: string[] = [
"@tapjs/mock/import"
].sort(
(a, b) => preimports.has(a) && !preimports.has(b) ? -1
: !preimports.has(a) && preimports.has(b) ? 1
: 0
)
/**
* All `loader` strings exported by plugins, including fallbacks provided
* for those that also export an `importLoader`
*/
export const loaderFallbacks: string[] = [
"@tapjs/mock/loader",
"ts-node/esm"
].sort(
(a, b) => preloaders.has(a) ? -1 : preloaders.has(b) ? 1 : 0
(a, b) => preloaders.has(a) && !preloaders.has(b) ? -1
: !preloaders.has(a) && preloaders.has(b) ? 1
: 0
)
//{{LOADERS END}}

@@ -298,0 +332,0 @@

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

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