MCPcopy Index your code
hub / github.com/nodejs/node / getConditionsSet

Function getConditionsSet

lib/internal/modules/esm/utils.js:95–104  ·  view source on GitHub ↗

* @param {string[]} [conditions] * @returns {Set }

(conditions)

Source from the content-addressed store, hash-verified

93 * @returns {Set<string>}
94 */
95function getConditionsSet(conditions) {
96 if (conditions !== undefined && conditions !== getDefaultConditions()) {
97 if (!ArrayIsArray(conditions)) {
98 throw new ERR_INVALID_ARG_VALUE('conditions', conditions,
99 'expected an array');
100 }
101 return new SafeSet(conditions);
102 }
103 return getDefaultConditionsSet();
104}
105
106/* eslint-disable jsdoc/valid-types */
107/**

Callers 1

defaultResolveFunction · 0.85

Calls 2

getDefaultConditionsFunction · 0.85
getDefaultConditionsSetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…