xpine 0.0.10 → 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/dist/index.d.ts.map +1 -0
- package/dist/src/auth.d.ts +5 -0
- package/dist/src/auth.d.ts.map +1 -0
- package/dist/src/build/typescript-builder.d.ts +29 -0
- package/dist/src/build/typescript-builder.d.ts.map +1 -0
- package/dist/src/express.d.ts +7 -0
- package/dist/src/express.d.ts.map +1 -0
- package/dist/src/runDevServer.d.ts +2 -0
- package/dist/src/runDevServer.d.ts.map +1 -0
- package/dist/src/scripts/build.d.ts +5 -0
- package/dist/src/scripts/build.d.ts.map +1 -0
- package/dist/src/util/env.d.ts +2 -0
- package/dist/src/util/env.d.ts.map +1 -0
- package/dist/src/util/get-config.d.ts +4 -0
- package/dist/src/util/get-config.d.ts.map +1 -0
- package/dist/src/util/html.d.ts +7 -0
- package/dist/src/util/html.d.ts.map +1 -0
- package/dist/src/util/require.d.ts +3 -0
- package/dist/src/util/require.d.ts.map +1 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +2 -2
- package/tsconfig.json +1 -2
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/index.ts +0 -7
- /package/dist/{lib/index.d.ts → index.d.ts} +0 -0
- /package/dist/{lib/types.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ServerRequest } from '../types';
|
|
2
|
+
export declare function signUser(email: string, username: string): Promise<unknown>;
|
|
3
|
+
export declare function verifyUser(token: string): Promise<any>;
|
|
4
|
+
export declare function getTokenFromRequest(req: ServerRequest): string;
|
|
5
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,wBAAsB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,oBAiB7D;AAED,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAQ5D;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,UAMrD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
type ImportDeclaration = {
|
|
3
|
+
node: ts.Node;
|
|
4
|
+
importPath: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getImportDeclarationNodes(node: ts.Node, sourceFile: ts.SourceFile, importDeclarations?: ImportDeclaration[]): ImportDeclaration[];
|
|
7
|
+
export declare function stripImportsNodesFromFile(importsToStrip: string[], content: string, importDeclarations: ImportDeclaration[]): string;
|
|
8
|
+
type FoundAlpineFunction = {
|
|
9
|
+
name: string;
|
|
10
|
+
isDefaultExport: boolean;
|
|
11
|
+
hasExport: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function findDataAttributesAndFunctions(node: ts.Node, sourceFile: ts.SourceFile, foundDataAttributes?: string[], foundFunctions?: FoundAlpineFunction[]): {
|
|
14
|
+
foundDataAttributes: string[];
|
|
15
|
+
foundFunctions: FoundAlpineFunction[];
|
|
16
|
+
};
|
|
17
|
+
export declare function getAttributeValuePair(node: ts.Node, sourceFile: ts.SourceFile): string[];
|
|
18
|
+
export declare function getFunctionDeclarationValue(node: ts.Node, sourceFile: ts.SourceFile): FoundAlpineFunction;
|
|
19
|
+
export declare function convertEntryPointsToSingleFile(entryPoints: string[], tempWritePath: string): void;
|
|
20
|
+
export declare function removeClientScriptInTSXFile(pathName: string): {
|
|
21
|
+
content: any;
|
|
22
|
+
clientContent: any;
|
|
23
|
+
fullContent: any;
|
|
24
|
+
toRemoveFrom: number;
|
|
25
|
+
clientDataStart: number;
|
|
26
|
+
};
|
|
27
|
+
export declare function printRecursiveFrom(node: ts.Node, indentLevel: number, sourceFile: ts.SourceFile): void;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=typescript-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-builder.d.ts","sourceRoot":"","sources":["../../../src/build/typescript-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAA;AAGD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAE,iBAAiB,EAAO,uBAiB/H;AAED,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,UAO3H;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAA;AAED,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,UAAU,EAAE,EAAE,CAAC,UAAU,EACzB,mBAAmB,GAAE,MAAM,EAAO,EAClC,cAAc,GAAE,mBAAmB,EAAO;;;EA0B3C;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,EAAE,CAMxF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,mBAAmB,CAkBzG;AAGD,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,QAO1F;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM;;;;;;EAoD3D;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,UAAU,QAU9D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Express } from 'express';
|
|
2
|
+
export declare function createRouter(): Promise<{
|
|
3
|
+
router: import("express-serve-static-core").Router;
|
|
4
|
+
routeResults: any[];
|
|
5
|
+
}>;
|
|
6
|
+
export declare function createXPineRouter(app: any, beforeErrorRoute?: (app: Express) => void): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=express.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/express.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAgB,OAAO,EAAqB,MAAM,SAAS,CAAC;AAS5E,wBAAsB,YAAY;;;GAgEjC;AAiBD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,iBA6B1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runDevServer.d.ts","sourceRoot":"","sources":["../../src/runDevServer.ts"],"names":[],"mappings":"AAYA,wBAAsB,YAAY,kBAiDjC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function buildApp(isDev?: boolean): Promise<void>;
|
|
2
|
+
export declare function buildCSS(): Promise<void>;
|
|
3
|
+
export declare function buildPublicFolderSymlinks(): Promise<void>;
|
|
4
|
+
export declare function logSize(pathName: string, type: 'app' | 'client' | 'css', validExtensions?: string[]): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/scripts/build.ts"],"names":[],"mappings":"AAsBA,wBAAsB,QAAQ,CAAC,KAAK,UAAQ,iBAa3C;AA4LD,wBAAsB,QAAQ,kBAW7B;AAGD,wBAAsB,yBAAyB,kBAgB9C;AAOD,wBAAsB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,EAAE,eAAe,WAAkB,iBAahH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/util/env.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,SAEvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-config.d.ts","sourceRoot":"","sources":["../../../src/util/get-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,wBAAgB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,UAGzC;AAoDD,eAAO,MAAM,MAAM,EAAE,WAGpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class html {
|
|
2
|
+
static attributeObjectToString(props: any): string;
|
|
3
|
+
static fragment(props: any): Promise<string>;
|
|
4
|
+
static createElement(type: any, props: any, ...children: any[]): Promise<any>;
|
|
5
|
+
}
|
|
6
|
+
export declare function JSXRuntime(): boolean;
|
|
7
|
+
//# sourceMappingURL=html.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/util/html.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI;IAEf,MAAM,CAAC,uBAAuB,CAAC,KAAK,KAAA;WAWvB,QAAQ,CAAC,KAAK,KAAA;WAKd,aAAa,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA,EAAE,GAAG,QAAQ,OAAA;CASpD;AAED,wBAAgB,UAAU,YAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require.d.ts","sourceRoot":"","sources":["../../../src/util/require.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,gBAAiC,CAAC;AAE/C,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG;IACpC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xpine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-secrets-manager": "^3.758.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"xpine-build": "dist/src/scripts/xpine-build.js",
|
|
33
33
|
"xpine-dev": "dist/src/scripts/xpine-dev.js"
|
|
34
34
|
},
|
|
35
|
-
"types": "dist/
|
|
35
|
+
"types": "dist/index.d.ts",
|
|
36
36
|
"type": "module",
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/express": "^5.0.0",
|
package/tsconfig.json
CHANGED
package/dist/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
package/dist/lib/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG;IACpC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAA"}
|
package/index.ts
DELETED
|
File without changes
|
|
File without changes
|