nitro-web 0.0.94 → 0.0.95
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/client/index.ts +6 -4
- package/package.json +1 -1
- package/types/globals.d.ts +9 -0
package/client/index.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// const pi = parseFloat(3.142)
|
|
2
2
|
import '../types/globals.d.ts'
|
|
3
3
|
|
|
4
|
-
// Utility functions
|
|
5
|
-
export * from '
|
|
6
|
-
export * as util from '
|
|
7
|
-
|
|
4
|
+
// Utility functions (use export path for js declarations to work in host projects)
|
|
5
|
+
export * from 'nitro-web/util'
|
|
6
|
+
export * as util from 'nitro-web/util'
|
|
7
|
+
|
|
8
|
+
// Main types
|
|
9
|
+
export * from 'types'
|
|
8
10
|
|
|
9
11
|
// Main app functions
|
|
10
12
|
export { setupApp, updateJwt } from './app'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.95",
|
|
4
4
|
"repository": "github:boycce/nitro-web",
|
|
5
5
|
"homepage": "https://boycce.github.io/nitro-web/",
|
|
6
6
|
"description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
|
package/types/globals.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import 'twin.macro'
|
|
|
2
2
|
import { css as cssImport } from '@emotion/react'
|
|
3
3
|
import styledImport from '@emotion/styled'
|
|
4
4
|
import { CSSInterpolation } from '@emotion/serialize'
|
|
5
|
+
import 'axios'
|
|
6
|
+
import type { IAxiosRetry } from 'axios-retry'
|
|
5
7
|
|
|
6
8
|
declare global {
|
|
7
9
|
/** Webpack injected config variables */
|
|
@@ -19,6 +21,13 @@ declare global {
|
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
|
|
24
|
+
// Webpack: axios-retry augment (since axios-retry is not imported in host project)
|
|
25
|
+
declare module 'axios' {
|
|
26
|
+
export interface AxiosRequestConfig {
|
|
27
|
+
'axios-retry'?: IAxiosRetry.IAxiosRetryConfigExtended
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
// Webpack: Twin.macro css extension
|
|
23
32
|
// https://github.com/ben-rogerson/twin.examples/tree/master/react-emotion-typescript
|
|
24
33
|
declare module 'twin.macro' {
|