diff options
author | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 |
---|---|---|
committer | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 |
commit | 6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch) | |
tree | f46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/rxjs/migrations | |
parent | 2400b84e95913665da6279114168148444b8f9ab (diff) | |
parent | 7d3640f824f46490b47bd95f1c5a16644f712068 (diff) |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/rxjs/migrations')
3 files changed, 38 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/collection.json b/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/collection.json new file mode 100644 index 00000000..7eb11244 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/collection.json @@ -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" + } + } +} diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js b/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js new file mode 100644 index 00000000..acf57b55 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js @@ -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
\ No newline at end of file diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js.map b/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js.map new file mode 100644 index 00000000..50d6d875 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js.map @@ -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"}
\ No newline at end of file |