Sha256: e4052a7e83b6c60e098a9d169b3a7ef12ffdd10f8e8ccd9f565d2f99fb6fdae4

Contents?: true

Size: 359 Bytes

Versions: 88

Compression:

Stored size: 359 Bytes

Contents

'use strict';

function getCurrentRequest(loaderContext) {
  if (loaderContext.currentRequest) {
    return loaderContext.currentRequest;
  }

  const request = loaderContext.loaders
    .slice(loaderContext.loaderIndex)
    .map((obj) => obj.request)
    .concat([loaderContext.resource]);

  return request.join('!');
}

module.exports = getCurrentRequest;

Version data entries

88 entries across 28 versions & 9 rubygems

Version Path
ruby2js-4.0.4 lib/tasks/testrails/node_modules/style-loader/node_modules/loader-utils/lib/getCurrentRequest.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/loader-utils/lib/getCurrentRequest.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/style-loader/node_modules/loader-utils/lib/getCurrentRequest.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/file-loader/node_modules/loader-utils/lib/getCurrentRequest.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.2.0 spec/tang_app/node_modules/style-loader/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.2.0 spec/tang_app/node_modules/file-loader/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.2.0 spec/tang_app/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.1.0 spec/tang_app/node_modules/style-loader/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.1.0 spec/tang_app/node_modules/file-loader/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.1.0 spec/tang_app/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.0.9 spec/tang_app/node_modules/style-loader/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.0.9 spec/tang_app/node_modules/loader-utils/lib/getCurrentRequest.js
tang-0.0.9 spec/tang_app/node_modules/file-loader/node_modules/loader-utils/lib/getCurrentRequest.js
enju_library-0.3.8 spec/dummy/node_modules/loader-utils/lib/getCurrentRequest.js
ilog-0.4.1 node_modules/laravel-mix/node_modules/vue-style-loader/node_modules/loader-utils/lib/getCurrentRequest.js
ilog-0.4.1 node_modules/loader-utils/lib/getCurrentRequest.js
ilog-0.4.0 node_modules/laravel-mix/node_modules/vue-style-loader/node_modules/loader-utils/lib/getCurrentRequest.js
ilog-0.4.0 node_modules/loader-utils/lib/getCurrentRequest.js
ilog-0.3.3 node_modules/laravel-mix/node_modules/vue-style-loader/node_modules/loader-utils/lib/getCurrentRequest.js