@ptolemy2002/rgx 12.0.0 → 12.1.0

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.
@@ -1,2 +1,2 @@
1
1
  import { RGXTokenOrPart } from "../walker";
2
- export declare function rgxTaggedTemplateToArray<R = unknown, S = unknown, T = unknown>(strings: TemplateStringsArray, tokens: RGXTokenOrPart<R, S, T>[], multiline: boolean, verbatim: boolean): RGXTokenOrPart<R, S, T>[];
2
+ export declare function rgxTaggedTemplateToArray<R = unknown, S = unknown, T = unknown>(_strings: TemplateStringsArray, tokens: RGXTokenOrPart<R, S, T>[], multiline: boolean, verbatim: boolean): RGXTokenOrPart<R, S, T>[];
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rgxTaggedTemplateToArray = rgxTaggedTemplateToArray;
4
- function rgxTaggedTemplateToArray(strings, tokens, multiline, verbatim) {
4
+ function rgxTaggedTemplateToArray(_strings, tokens, multiline, verbatim) {
5
+ // Process the strings with escape sequences left alone.
6
+ const strings = _strings.raw;
5
7
  const array = [];
6
8
  for (let i = 0; i < Math.max(strings.length, tokens.length); i++) {
7
9
  const isTokensEnd = i >= tokens.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptolemy2002/rgx",
3
- "version": "12.0.0",
3
+ "version": "12.1.0",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",