Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/strapi/node_modules/rxjs/migrations/update-6_0_0/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var schematics_1 = require("@angular-devkit/schematics");
var tasks_1 = require("@angular-devkit/schematics/tasks");
var rxjsCompatVersion = '^6.0.0-rc.0';
function rxjsV6MigrationSchematic(_options) {
return function (tree, context) {
var pkgPath = '/package.json';
var buffer = tree.read(pkgPath);
if (buffer == null) {
throw new schematics_1.SchematicsException('Could not read package.json');
}
var content = buffer.toString();
var pkg = JSON.parse(content);
if (pkg === null || typeof pkg !== 'object' || Array.isArray(pkg)) {
throw new schematics_1.SchematicsException('Error reading package.json');
}
if (!pkg.dependencies) {
pkg.dependencies = {};
}
pkg.dependencies['rxjs-compat'] = rxjsCompatVersion;
tree.overwrite(pkgPath, JSON.stringify(pkg, null, 2));
context.addTask(new tasks_1.NodePackageInstallTask());
return tree;
};
}
exports.rxjsV6MigrationSchematic = rxjsV6MigrationSchematic;
//# sourceMappingURL=index.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0154 ]-- |