aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0
diff options
context:
space:
mode:
authorNevena Bojovic <nenabojov@gmail.com>2022-03-01 20:05:50 +0100
committerNevena Bojovic <nenabojov@gmail.com>2022-03-01 20:05:50 +0100
commit291803c31f829fe0d32bb3207bc11def95a7408c (patch)
treec7d43107d79291b19d8c9eceefbe91c9f9a52acf /sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0
parent1fa69862057db4db53cfda5be9c24b4228ef63f7 (diff)
Urađena test aplikacija. Povezan front i back.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js28
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/migrations/update-6_0_0/index.js.map1
2 files changed, 29 insertions, 0 deletions
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