@ngtools/webpack 19.1.7 → 19.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngtools/webpack",
3
- "version": "19.1.7",
3
+ "version": "19.1.9",
4
4
  "description": "Webpack plugin that AoT compiles your Angular components and modules.",
5
5
  "main": "./src/index.js",
6
6
  "typings": "src/index.d.ts",
package/src/ivy/host.js CHANGED
@@ -46,8 +46,8 @@ exports.augmentHostWithReplacements = augmentHostWithReplacements;
46
46
  exports.augmentHostWithSubstitutions = augmentHostWithSubstitutions;
47
47
  exports.augmentProgramWithVersioning = augmentProgramWithVersioning;
48
48
  exports.augmentHostWithCaching = augmentHostWithCaching;
49
- const crypto_1 = require("crypto");
50
- const path = __importStar(require("path"));
49
+ const node_crypto_1 = require("node:crypto");
50
+ const path = __importStar(require("node:path"));
51
51
  const ts = __importStar(require("typescript"));
52
52
  const paths_1 = require("./paths");
53
53
  function augmentHostWithResources(host, resourceLoader, options = {}) {
@@ -204,7 +204,7 @@ function augmentProgramWithVersioning(program) {
204
204
  const files = baseGetSourceFiles(...parameters);
205
205
  for (const file of files) {
206
206
  if (file.version === undefined) {
207
- file.version = (0, crypto_1.createHash)('sha256').update(file.text).digest('hex');
207
+ file.version = (0, node_crypto_1.createHash)('sha256').update(file.text).digest('hex');
208
208
  }
209
209
  }
210
210
  return files;
package/src/ivy/loader.js CHANGED
@@ -42,7 +42,7 @@ var __importStar = (this && this.__importStar) || (function () {
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.angularWebpackLoader = angularWebpackLoader;
44
44
  exports.default = angularWebpackLoader;
45
- const path = __importStar(require("path"));
45
+ const path = __importStar(require("node:path"));
46
46
  const symbol_1 = require("./symbol");
47
47
  const JS_FILE_REGEXP = /\.[cm]?js$/;
48
48
  function angularWebpackLoader(content, map) {
package/src/ivy/paths.js CHANGED
@@ -42,7 +42,7 @@ var __importStar = (this && this.__importStar) || (function () {
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.externalizePath = void 0;
44
44
  exports.normalizePath = normalizePath;
45
- const nodePath = __importStar(require("path"));
45
+ const nodePath = __importStar(require("node:path"));
46
46
  const normalizationCache = new Map();
47
47
  function normalizePath(path) {
48
48
  let result = normalizationCache.get(path);
package/src/ivy/plugin.js CHANGED
@@ -41,7 +41,7 @@ var __importStar = (this && this.__importStar) || (function () {
41
41
  })();
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.AngularWebpackPlugin = exports.imageDomains = void 0;
44
- const assert_1 = require("assert");
44
+ const node_assert_1 = require("node:assert");
45
45
  const ts = __importStar(require("typescript"));
46
46
  const paths_plugin_1 = require("../paths-plugin");
47
47
  const resource_loader_1 = require("../resource_loader");
@@ -91,14 +91,14 @@ class AngularWebpackPlugin {
91
91
  // The compilerCliModule field is guaranteed to be defined during a compilation
92
92
  // due to the `beforeCompile` hook. Usage of this property accessor prior to the
93
93
  // hook execution is an implementation error.
94
- assert_1.strict.ok(this.compilerCliModule, `'@angular/compiler-cli' used prior to Webpack compilation.`);
94
+ node_assert_1.strict.ok(this.compilerCliModule, `'@angular/compiler-cli' used prior to Webpack compilation.`);
95
95
  return this.compilerCliModule;
96
96
  }
97
97
  get compilerCliTooling() {
98
98
  // The compilerCliToolingModule field is guaranteed to be defined during a compilation
99
99
  // due to the `beforeCompile` hook. Usage of this property accessor prior to the
100
100
  // hook execution is an implementation error.
101
- assert_1.strict.ok(this.compilerCliToolingModule, `'@angular/compiler-cli' used prior to Webpack compilation.`);
101
+ node_assert_1.strict.ok(this.compilerCliToolingModule, `'@angular/compiler-cli' used prior to Webpack compilation.`);
102
102
  return this.compilerCliToolingModule;
103
103
  }
104
104
  get options() {
@@ -527,7 +527,7 @@ class AngularWebpackPlugin {
527
527
  this.compilerCliToolingModule ??= await new Function(`return import('@angular/compiler-cli/private/tooling');`)();
528
528
  }
529
529
  async addFileEmitHistory(filePath, content) {
530
- assert_1.strict.ok(this.webpackCreateHash, 'File emitter is used prior to Webpack compilation');
530
+ node_assert_1.strict.ok(this.webpackCreateHash, 'File emitter is used prior to Webpack compilation');
531
531
  const historyData = {
532
532
  length: content.length,
533
533
  hash: this.webpackCreateHash('xxhash64').update(content).digest(),
@@ -41,7 +41,7 @@ var __importStar = (this && this.__importStar) || (function () {
41
41
  })();
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.TypeScriptPathsPlugin = void 0;
44
- const path = __importStar(require("path"));
44
+ const path = __importStar(require("node:path"));
45
45
  class TypeScriptPathsPlugin {
46
46
  baseUrl;
47
47
  patterns;