Sha256: 640743a7159a429ccae43607c1164e847af953343d76c5faa5e8be7e9a42f24f

Contents?: true

Size: 371 Bytes

Versions: 88

Compression:

Stored size: 371 Bytes

Contents

'use strict';

function getRemainingRequest(loaderContext) {
  if (loaderContext.remainingRequest) {
    return loaderContext.remainingRequest;
  }

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

  return request.join('!');
}

module.exports = getRemainingRequest;

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/getRemainingRequest.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/loader-utils/lib/getRemainingRequest.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.2.0 spec/tang_app/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.2.0 spec/tang_app/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.2.0 spec/tang_app/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.1.0 spec/tang_app/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.1.0 spec/tang_app/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.1.0 spec/tang_app/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.0.9 spec/tang_app/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.0.9 spec/tang_app/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.0.9 spec/tang_app/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
enju_library-0.3.8 spec/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
ilog-0.4.1 node_modules/laravel-mix/node_modules/vue-style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
ilog-0.4.1 node_modules/loader-utils/lib/getRemainingRequest.js
ilog-0.4.0 node_modules/laravel-mix/node_modules/vue-style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
ilog-0.4.0 node_modules/loader-utils/lib/getRemainingRequest.js
ilog-0.3.3 node_modules/laravel-mix/node_modules/vue-style-loader/node_modules/loader-utils/lib/getRemainingRequest.js