Every new change
This commit is contained in:
9
node_modules/rxjs/migrations/collection.json
generated
vendored
Normal file
9
node_modules/rxjs/migrations/collection.json
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"schematics": {
|
||||
"rxjs-migration-01": {
|
||||
"description": "Adds rxjs-compat package to the project to ensure compatability with RxJS 5",
|
||||
"version": "6.0.0-rc.0",
|
||||
"factory": "./update-6_0_0/index#rxjsV6MigrationSchematic"
|
||||
}
|
||||
}
|
||||
}
|
28
node_modules/rxjs/migrations/update-6_0_0/index.js
generated
vendored
Normal file
28
node_modules/rxjs/migrations/update-6_0_0/index.js
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
"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
|
1
node_modules/rxjs/migrations/update-6_0_0/index.js.map
generated
vendored
Normal file
1
node_modules/rxjs/migrations/update-6_0_0/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../migrations/update-6_0_0/index.ts"],"names":[],"mappings":";;AAAA,yDAAwG;AACxG,0DAA0E;AAE1E,IAAM,iBAAiB,GAAG,aAAa,CAAC;AAExC,SAAgB,wBAAwB,CAAC,QAAa;IACpD,OAAO,UAAC,IAAU,EAAE,OAAyB;QACzC,IAAM,OAAO,GAAG,eAAe,CAAC;QAChC,IAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClC,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,MAAM,IAAI,gCAAmB,CAAC,6BAA6B,CAAC,CAAC;SAC9D;QACD,IAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClC,IAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEhC,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACjE,MAAM,IAAI,gCAAmB,CAAC,4BAA4B,CAAC,CAAC;SAC7D;QAED,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;YACrB,GAAG,CAAC,YAAY,GAAG,EAAE,CAAC;SACvB;QAED,GAAG,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,iBAAiB,CAAC;QAEpD,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACtD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAE9C,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC;AAzBD,4DAyBC"}
|
Reference in New Issue
Block a user