xray16 1.1.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xray16",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "author": "Neloreck",
5
5
  "repository": "https://github.com/stalker-xrts/xray-16-types",
6
6
  "private": false,
@@ -1,11 +1,18 @@
1
1
  declare global {
2
2
  /**
3
- * Utility to get current filename, similar to __filename in nodejs.
3
+ * Utility to get current file name as inline value during transpiling, similar to __filename in node.
4
4
  *
5
5
  * @group xrf_plugin
6
6
  */
7
7
  const $filename: string;
8
8
 
9
+ /**
10
+ * Utility to get current directory name as inline value during transpiling, similar to __dirname in node.
11
+ *
12
+ * @group xrf_plugin
13
+ */
14
+ const $dirname: string;
15
+
9
16
  /**
10
17
  * Utility to transform TS provided array to a lua one.
11
18
  * Just wrapper that is stripped compile time, but simplifies unit testing with TS.