@formatjs/ts-transformer 3.13.24 → 3.13.26

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,5 +1,5 @@
1
- import * as path from 'path';
2
1
  import { createHash } from 'crypto';
2
+ import * as path from 'path';
3
3
  function getHashDigest(content, hashType = 'md5', digestType = 'hex', length = 9999) {
4
4
  const hasher = createHash(hashType);
5
5
  hasher.update(content);
@@ -1,5 +1,6 @@
1
- import { Opts } from '.';
2
1
  import type { TsCompilerInstance } from 'ts-jest';
2
+ import { SourceFile, TransformerFactory } from 'typescript';
3
+ import { Opts } from '.';
3
4
  export declare const name = "@formatjs/ts-transformer";
4
5
  export declare const version = "2.10.1";
5
- export declare function factory(compilerInstance: TsCompilerInstance, opts: Opts): import("typescript").TransformerFactory<import("typescript").SourceFile>;
6
+ export declare function factory(compilerInstance: TsCompilerInstance, opts: Opts): TransformerFactory<SourceFile>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/ts-transformer",
3
- "version": "3.13.24",
3
+ "version": "3.13.26",
4
4
  "description": "TS Compiler transformer for formatjs",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "json-stable-stringify": "1",
24
24
  "tslib": "2",
25
25
  "typescript": "5",
26
- "@formatjs/icu-messageformat-parser": "2.9.5"
26
+ "@formatjs/icu-messageformat-parser": "2.9.7"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "ts-jest": ">=27"
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.interpolateName = interpolateName;
4
4
  const tslib_1 = require("tslib");
5
- const path = tslib_1.__importStar(require("path"));
6
5
  const crypto_1 = require("crypto");
6
+ const path = tslib_1.__importStar(require("path"));
7
7
  function getHashDigest(content, hashType = 'md5', digestType = 'hex', length = 9999) {
8
8
  const hasher = (0, crypto_1.createHash)(hashType);
9
9
  hasher.update(content);
@@ -1,5 +1,6 @@
1
- import { Opts } from '.';
2
1
  import type { TsCompilerInstance } from 'ts-jest';
2
+ import { SourceFile, TransformerFactory } from 'typescript';
3
+ import { Opts } from '.';
3
4
  export declare const name = "@formatjs/ts-transformer";
4
5
  export declare const version = "2.10.1";
5
- export declare function factory(compilerInstance: TsCompilerInstance, opts: Opts): import("typescript").TransformerFactory<import("typescript").SourceFile>;
6
+ export declare function factory(compilerInstance: TsCompilerInstance, opts: Opts): TransformerFactory<SourceFile>;