tool-snippets 0.0.11 → 0.0.12

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": "tool-snippets",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -287,7 +287,10 @@
287
287
  },
288
288
  "tool-ts-try-await": {
289
289
  "prefix": "tool-ts-try-await",
290
- "body": ["await evo.awaitTryCatch.send($1, $2)", "$0"],
290
+ "body": [
291
+ "private readonly awaitTryCatch = inject(AwaitTryCatchService);",
292
+ "await this.awaitTryCatch.send($1, $2)", "$0"
293
+ ],
291
294
  "description": "tryCatch для promise",
292
295
  "scope": "javascript,typescript"
293
296
  },
@@ -145,7 +145,7 @@
145
145
  <option name="TypeScript" value="true" />
146
146
  </context>
147
147
  </template>
148
- <template name="tool-ts-try-await" value="await evo.awaitTryCatch.send($PROMISE$, $FROM$)" description="tryCatch для promise" toReformat="false" toShortenFQNames="true">
148
+ <template name="tool-ts-try-await" value="private readonly awaitTryCatch = inject(AwaitTryCatchService);&#10; await this.awaitTryCatch.send($PROMISE$, $FROM$)" description="tryCatch для promise" toReformat="false" toShortenFQNames="true">
149
149
  <variable name="PROMISE" expression="" defaultValue="" alwaysStopAt="true" />
150
150
  <variable name="FROM" expression="" defaultValue="" alwaysStopAt="true" />
151
151
  <context>