eolang 0.12.0 → 0.13.1

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/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 Yegor Bugayenko
1
+ Copyright (c) 2022-2023 Objectionary.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  [![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
4
4
  [![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)
5
5
 
6
- [![node-current](https://img.shields.io/node/v/eolang)](https://www.npmjs.com/package/eolang)
7
6
  [![grunt](https://github.com/objectionary/eoc/actions/workflows/grunt.yml/badge.svg)](https://github.com/objectionary/eoc/actions/workflows/grunt.yml)
7
+ [![node-current](https://img.shields.io/node/v/eolang)](https://www.npmjs.com/package/eolang)
8
8
  [![PDD status](http://www.0pdd.com/svg?name=objectionary/eoc)](http://www.0pdd.com/p?name=objectionary/eoc)
9
9
  [![Hits-of-Code](https://hitsofcode.com/github/objectionary/eoc)](https://hitsofcode.com/view/github/objectionary/eoc)
10
10
  ![Lines of code](https://img.shields.io/tokei/lines/github/objectionary/eoc)
package/itest/program.eo CHANGED
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2022 Yegor Bugayenko
3
+ # Copyright (c) 2022-2023 Objectionary.com
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2022 Yegor Bugayenko
3
+ # Copyright (c) 2022-2023 Objectionary.com
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
package/itest/story.eo CHANGED
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2022 Yegor Bugayenko
3
+ # Copyright (c) 2022-2023 Objectionary.com
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -14,5 +14,5 @@
14
14
  # KIND, either express or implied. See the License for the
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
- distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.0/apache-maven-3.9.0-bin.zip
17
+ distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
18
18
  wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
package/mvnw/pom.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
- Copyright (c) 2022 Yegor Bugayenko
3
+ Copyright (c) 2022-2023 Objectionary.com
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -31,15 +31,20 @@ SOFTWARE.
31
31
  <eo.version>0.0.0</eo.version>
32
32
  </properties>
33
33
  <dependencies>
34
+ <dependency>
35
+ <groupId>org.eolang</groupId>
36
+ <artifactId>eo-runtime</artifactId>
37
+ <version>${eo.version}</version>
38
+ </dependency>
34
39
  <dependency>
35
40
  <groupId>org.junit.jupiter</groupId>
36
41
  <artifactId>junit-jupiter-api</artifactId>
37
- <version>5.9.2</version>
42
+ <version>5.9.3</version>
38
43
  </dependency>
39
44
  <dependency>
40
45
  <groupId>org.junit.jupiter</groupId>
41
46
  <artifactId>junit-jupiter-engine</artifactId>
42
- <version>5.9.2</version>
47
+ <version>5.9.3</version>
43
48
  </dependency>
44
49
  </dependencies>
45
50
  <build>
@@ -82,7 +87,7 @@ SOFTWARE.
82
87
  </plugin>
83
88
  <plugin>
84
89
  <artifactId>maven-surefire-plugin</artifactId>
85
- <version>3.0.0-M8</version>
90
+ <version>3.1.0</version>
86
91
  <configuration>
87
92
  <failIfNoTests>true</failIfNoTests>
88
93
  </configuration>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eolang",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "author": "Yegor Bugayenko <yegor256@gmail.com> (https://www.yegor256.com/)",
5
5
  "license": "MIT",
6
6
  "repository": "objectionary/eoc",
@@ -31,20 +31,22 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "colors": "1.4.0",
34
- "commander": "10.0.0",
35
- "fast-xml-parser": "4.1.1",
34
+ "commander": "10.0.1",
35
+ "fast-xml-parser": "4.2.2",
36
+ "node": "20.2.0",
37
+ "sync-request": "6.1.0",
36
38
  "xmlhttprequest": "1.8.0"
37
39
  },
38
40
  "devDependencies": {
39
- "eslint": "8.33.0",
41
+ "eslint": "8.41.0",
40
42
  "eslint-config-google": "0.14.0",
41
43
  "grunt": "1.6.1",
42
44
  "grunt-contrib-clean": "2.0.1",
43
- "grunt-eslint": "24.0.1",
44
- "grunt-mocha-cli": "7.0.0",
45
+ "grunt-eslint": "24.1.0",
46
+ "grunt-mocha-cli": "^7.0.0",
45
47
  "mocha": "^10.2.0"
46
48
  },
47
49
  "scripts": {
48
- "test": "mocha --timeout 1200000"
50
+ "test": "mocha --timeout 120.13.1"
49
51
  }
50
52
  }
package/renovate.json CHANGED
@@ -3,5 +3,9 @@
3
3
  "extends": [
4
4
  "config:base"
5
5
  ],
6
- "ignoreDeps": ["maven-compiler-plugin", "org.eolang:eo-maven-plugin"]
6
+ "ignoreDeps": [
7
+ "org.apache.maven.plugins:maven-compiler-plugin",
8
+ "org.eolang:eo-maven-plugin",
9
+ "org.eolang:eo-runtime"
10
+ ]
7
11
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
24
24
 
25
25
  const path = require('path');
26
26
  const mvnw = require('../mvnw');
27
- const parserVersion = require('../parser-version');
28
27
 
29
28
  /**
30
29
  * Command to assemble .XMIR files.
@@ -34,10 +33,10 @@ const parserVersion = require('../parser-version');
34
33
  module.exports = function(opts) {
35
34
  return mvnw([
36
35
  'eo:assemble',
37
- '-Deo.version=' + (opts.parser ? opts.parser : parserVersion.get()),
36
+ '-Deo.version=' + opts.parser,
37
+ '-Deo.hash=' + (opts.hash ? opts.hash : opts.parser),
38
38
  opts.verbose ? '' : '--quiet',
39
39
  opts.trackOptimizationSteps ? '-Deo.trackOptimizationSteps' : '',
40
- opts.hash ? '-Deo.hash=' + opts.hash : '',
41
40
  `-Deo.targetDir=${path.resolve(opts.target)}`,
42
41
  `-Deo.outputDir=${path.resolve(opts.target, 'classes')}`,
43
42
  `-Deo.placed=${path.resolve(opts.target, 'eo-placed.csv')}`,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -23,7 +23,6 @@
23
23
  */
24
24
 
25
25
  const mvnw = require('../mvnw');
26
- const parserVersion = require('../parser-version');
27
26
 
28
27
  /**
29
28
  * Command to audit all packages.
@@ -31,6 +30,5 @@ const parserVersion = require('../parser-version');
31
30
  * @return {Promise} of audit task
32
31
  */
33
32
  module.exports = function(opts) {
34
- parserVersion.get();
35
33
  return mvnw(['--version'], null, opts.batch);
36
34
  };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
24
24
 
25
25
  const mvnw = require('../mvnw');
26
26
  const path = require('path');
27
- const parserVersion = require('../parser-version');
28
27
 
29
28
  /**
30
29
  * Command to compile target language into binaries.
@@ -40,7 +39,7 @@ module.exports = function(opts) {
40
39
  `-Dmaven.compiler.target=1.8`,
41
40
  `-Deo.targetDir=${target}`,
42
41
  `-Deo.generatedDir=${path.resolve(opts.target, 'generated-sources')}`,
43
- '-Deo.version=' + (opts.parser ? opts.parser : parserVersion.get()),
42
+ '-Deo.version=' + opts.parser,
44
43
  ], opts.target, opts.batch).then((r) => {
45
44
  console.info('Java .class files compiled into %s', target);
46
45
  return r;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
24
24
 
25
25
  const mvnw = require('../mvnw');
26
26
  const path = require('path');
27
- const parserVersion = require('../parser-version');
28
27
 
29
28
  /**
30
29
  * Command to link binaries into a single executable binary.
@@ -36,7 +35,7 @@ module.exports = function(opts) {
36
35
  'jar:jar',
37
36
  opts.verbose ? '' : '--quiet',
38
37
  `-Deo.targetDir=${path.resolve(opts.target)}`,
39
- '-Deo.version=' + (opts.parser ? opts.parser : parserVersion.get()),
38
+ '-Deo.version=' + opts.parser,
40
39
  ], opts.target, opts.batch).then((r) => {
41
40
  console.info('Executable JAR created at %s', path.resolve(opts.target, 'eoc.jar'));
42
41
  return r;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
24
24
 
25
25
  const path = require('path');
26
26
  const mvnw = require('../mvnw');
27
- const parserVersion = require('../parser-version');
28
27
 
29
28
  /**
30
29
  * Command to parse EO into .XMIR files.
@@ -34,9 +33,9 @@ const parserVersion = require('../parser-version');
34
33
  module.exports = function(opts) {
35
34
  return mvnw([
36
35
  'eo:parse',
37
- '-Deo.version=' + (opts.parser ? opts.parser : parserVersion.get()),
36
+ '-Deo.version=' + opts.parser,
37
+ '-Deo.hash=' + (opts.hash ? opts.hash : opts.parser),
38
38
  opts.verbose ? '' : '--quiet',
39
- opts.hash ? '-Deo.hash=' + opts.hash : '',
40
39
  `-Deo.targetDir=${path.resolve(opts.target)}`,
41
40
  `-Deo.outputDir=${path.resolve(opts.target, 'classes')}`,
42
41
  ], opts.target, opts.batch).then((r) => {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
24
24
 
25
25
  const mvnw = require('../mvnw');
26
26
  const path = require('path');
27
- const parserVersion = require('../parser-version');
28
27
 
29
28
  /**
30
29
  * Command to register .EO sources.
@@ -35,7 +34,7 @@ module.exports = function(opts) {
35
34
  const foreign = path.resolve(opts.target, 'eo-foreign.json');
36
35
  return mvnw([
37
36
  'eo:register',
38
- '-Deo.version=' + (opts.parser ? opts.parser : parserVersion.get()),
37
+ '-Deo.version=' + opts.parser,
39
38
  opts.verbose ? '' : '--quiet',
40
39
  `-Deo.targetDir=${path.resolve(opts.target)}`,
41
40
  `-Deo.sourcesDir=${path.resolve(opts.sources)}`,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
24
24
 
25
25
  const path = require('path');
26
26
  const mvnw = require('../mvnw');
27
- const parserVersion = require('../parser-version');
28
27
 
29
28
  /**
30
29
  * Generate SODG files from XMIR.
@@ -34,7 +33,7 @@ const parserVersion = require('../parser-version');
34
33
  module.exports = function(opts) {
35
34
  const argv = [
36
35
  'eo:sodg',
37
- '-Deo.version=' + (opts.parser ? opts.parser : parserVersion.get()),
36
+ '-Deo.version=' + opts.parser,
38
37
  opts.verbose ? '' : '--quiet',
39
38
  `-Deo.targetDir=${path.resolve(opts.target)}`,
40
39
  ];
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -33,6 +33,7 @@ const path = require('path');
33
33
  module.exports = function(opts) {
34
34
  return mvnw([
35
35
  'surefire:test',
36
+ '-Deo.version=' + opts.parser,
36
37
  `-Deo.targetDir=${path.resolve(opts.target)}`,
37
38
  ]);
38
39
  };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
24
24
 
25
25
  const mvnw = require('../mvnw');
26
26
  const path = require('path');
27
- const parserVersion = require('../parser-version');
28
27
 
29
28
  /**
30
29
  * Command to transpile XMIR files into target language.
@@ -35,7 +34,7 @@ module.exports = function(opts) {
35
34
  const sources = path.resolve(opts.target, 'generated-sources');
36
35
  return mvnw([
37
36
  'eo:transpile',
38
- '-Deo.version=' + (opts.parser ? opts.parser : parserVersion.get()),
37
+ '-Deo.version=' + opts.parser,
39
38
  opts.verbose ? '' : '--quiet',
40
39
  `-Deo.targetDir=${path.resolve(opts.target)}`,
41
40
  `-Deo.generatedDir=${sources}`,
package/src/eoc.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /*
3
3
  * The MIT License (MIT)
4
4
  *
5
- * Copyright (c) 2022 Yegor Bugayenko
5
+ * Copyright (c) 2022-2023 Objectionary.com
6
6
  *
7
7
  * Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  * of this software and associated documentation files (the "Software"), to deal
@@ -41,19 +41,25 @@ const test = require('./commands/test');
41
41
  if (process.argv.includes('--verbose')) {
42
42
  tinted.enable('debug');
43
43
  console.debug('Debug output is turned ON');
44
- console.info('INFO');
45
44
  }
46
45
 
46
+ let parser = '0.29.4';
47
+ if (process.argv.includes('--latest')) {
48
+ parser = require('./parser-version').get();
49
+ }
50
+
51
+ const version = require('./version');
47
52
  program
48
53
  .name('eoc')
49
- .description('EO command-line toolkit (' + require('./version') + ')')
50
- .version(require('./version'));
54
+ .description('EO command-line toolkit (' + version.what + ' ' + version.when + ')')
55
+ .version(version.what);
51
56
 
52
57
  program
53
58
  .option('-s, --sources <path>', 'Directory with .EO sources', '.')
54
59
  .option('-t, --target <path>', 'Directory with all generated files', '.eoc')
55
- .option('--hash <hex>', 'Hash in objectionary/home to compile against')
56
- .option('--parser <version>', 'Set the version of parser to use')
60
+ .option('--hash <hex>', 'Hash in objectionary/home to compile against', parser)
61
+ .option('--parser <version>', 'Set the version of EO parser to use', parser)
62
+ .option('--latest', 'Use the latest parser version from Maven Central')
57
63
  .option('--alone', 'Just run a single command without dependencies')
58
64
  .option('-b, --batch', 'Run in batch mode, suppress interactive messages')
59
65
  .option('--no-color', 'Disable colorization of console messages')
@@ -222,4 +228,3 @@ function clear(str) {
222
228
  clean({...program.opts(), ...str});
223
229
  }
224
230
  }
225
-
package/src/mvnw.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -59,8 +59,10 @@ module.exports = function(args, tgt, batch) {
59
59
  return t != '';
60
60
  }).concat([
61
61
  '--batch-mode',
62
+ '--color=never',
62
63
  '--update-snapshots',
63
64
  '--fail-fast',
65
+ '--strict-checksums',
64
66
  ]);
65
67
  const cmd = bin + ' ' + params.join(' ');
66
68
  console.debug('+ %s', cmd);
@@ -73,13 +75,14 @@ module.exports = function(args, tgt, batch) {
73
75
  shell: shell(),
74
76
  }
75
77
  );
76
- if (tgt != undefined) {
78
+ if (tgt != undefined && args.includes('--quiet')) {
77
79
  if (!batch) {
78
80
  start();
79
81
  }
80
82
  result.on('close', (code) => {
81
83
  if (code !== 0) {
82
- throw new Error(`The command "${cmd}" exited with #${code} code`);
84
+ console.error(`The command "${cmd}" exited with #${code} code`);
85
+ process.exit(1);
83
86
  }
84
87
  if (!batch) {
85
88
  stop();
@@ -89,7 +92,8 @@ module.exports = function(args, tgt, batch) {
89
92
  } else {
90
93
  result.on('close', (code) => {
91
94
  if (code !== 0) {
92
- throw new Error(`The command "${cmd}" exited with #${code} code`);
95
+ console.error(`The command "${cmd}" exited with #${code} code`);
96
+ process.exit(1);
93
97
  }
94
98
  resolve(args);
95
99
  });
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
26
25
  const {XMLParser} = require('fast-xml-parser');
26
+ const request = require('sync-request');
27
27
 
28
28
  /**
29
29
  * Load the latest version from GitHub releases.
@@ -34,17 +34,14 @@ const version = module.exports = {
34
34
  get: function() {
35
35
  if (version.value === '') {
36
36
  const repo = 'org/eolang/eo-maven-plugin';
37
- const url = 'https://repo.maven.apache.org/maven2/' + repo + '/maven-metadata.xml';
38
- const xhr = new XMLHttpRequest();
39
- xhr.open('GET', url, false);
40
- xhr.send(null);
41
- if (xhr.status != 200) {
42
- throw new Error('Invalid response status ' + xhr.status + ' from ' + url);
37
+ const url = `https://repo.maven.apache.org/maven2/${repo}/maven-metadata.xml`;
38
+ const res = request('GET', url, {timeout: 100000, socketTimeout: 100000});
39
+ if (res.statusCode != 200) {
40
+ throw new Error(`Invalid response status #${res.statusCode} from ${url}: ${res.body}`);
43
41
  }
44
- const xml = new XMLParser().parse(xhr.responseText);
42
+ const xml = new XMLParser().parse(res.body);
45
43
  version.value = xml.metadata.versioning.release;
46
- console.debug('The latest version of %s at %s is %s', repo, url, version.value);
47
- console.info('EO version is %s', version.value);
44
+ console.info('The latest version of %s at %s is %s', repo, url, version.value);
48
45
  }
49
46
  return version.value;
50
47
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
package/src/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * The MIT License (MIT)
3
3
  *
4
- * Copyright (c) 2022 Yegor Bugayenko
4
+ * Copyright (c) 2022-2023 Objectionary.com
5
5
  *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
@@ -22,4 +22,9 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- module.exports = '0.12.0';
25
+ // The values here are replaced automatically by the .rultor.yml script,
26
+ // at the "release" pipeline:
27
+ module.exports = {
28
+ what: '0.13.1',
29
+ when: '00.13.10-00'
30
+ };