foobara-typescript-remote-command-generator 0.0.22 → 0.0.24
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46c714c0eb18fde6fcf73ce38aaa8b3f561bf5801f63eb080ac134cb92a46cb4
|
4
|
+
data.tar.gz: 249bf1a42385f4eee8c35400c92681c558dcb4ff088c7c8a1619809d2477e9b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9784818a6ac63aab255b0e186fe0ff826cf355e5ebb753255abf2e2b6ea13c64b1836aa6e9e4f510f7948ed4eb2eccf2f6bac766e575c6c2ea2249785ac82778
|
7
|
+
data.tar.gz: 271b4bbf8db8affb1c1e782428d3ae0282d526598027995593c12b0c141300a4d4e9097e9d7b19cf5adeece2fef31447ad62336ac641c15be935c25a98c6dbb1
|
data/CHANGELOG.md
CHANGED
@@ -37,7 +37,7 @@ module Foobara
|
|
37
37
|
Services::Auth::LogoutGenerator
|
38
38
|
when /\bGetCurrentUser$/
|
39
39
|
[
|
40
|
-
Services::
|
40
|
+
Services::Auth::RequiresAuthGenerator,
|
41
41
|
Services::Auth::SetupGenerator
|
42
42
|
]
|
43
43
|
else
|
@@ -355,6 +355,16 @@ module Foobara
|
|
355
355
|
def hash
|
356
356
|
path.hash
|
357
357
|
end
|
358
|
+
|
359
|
+
def path_to_root
|
360
|
+
path = super
|
361
|
+
|
362
|
+
if path.empty?
|
363
|
+
"./"
|
364
|
+
else
|
365
|
+
path
|
366
|
+
end
|
367
|
+
end
|
358
368
|
end
|
359
369
|
end
|
360
370
|
end
|
data/templates/setup.ts.erb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { getQuery } from './base/QueryCache'
|
2
2
|
import { setGetCurrentUserQuery } from './Foobara/Auth/utils/accessTokens'
|
3
3
|
|
4
|
-
import <%= import_destructure %> from "<%= path_to_root %><%= import_path %>"
|
4
|
+
import <%= command_generator.import_destructure %> from "<%= path_to_root %><%= command_generator.import_path %>"
|
5
5
|
|
6
|
-
setGetCurrentUserQuery(getQuery(<%= dependency_group.non_colliding_type(
|
6
|
+
setGetCurrentUserQuery(getQuery(<%= dependency_group.non_colliding_type(command_generator) %>, undefined))
|