@layerzerolabs/context-node 0.0.8
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/.turbo/turbo-build.log +18 -0
- package/.turbo/turbo-lint.log +4 -0
- package/dist/index.cjs +18 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -0
- package/src/index.ts +14 -0
- package/tsconfig.json +28 -0
- package/tsup.config.ts +8 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
> @layerzerolabs/context-node@0.0.0 build /home/runner/work/monorepo-internal/monorepo-internal/packages/definitions/context-node
|
|
3
|
+
> tsup
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.4.0
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/definitions/context-node/tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: es2022
|
|
10
|
+
[34mCLI[39m Cleaning output folder
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m508.00 B[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m717.00 B[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 85ms
|
|
16
|
+
[32mESM[39m [1mdist/index.js [22m[32m460.00 B[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m714.00 B[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 86ms
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var baseDefinitions = require('@layerzerolabs/base-definitions');
|
|
4
|
+
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var ContextDefinition = class extends baseDefinitions.ObjectDefinition {
|
|
8
|
+
static {
|
|
9
|
+
__name(this, "ContextDefinition");
|
|
10
|
+
}
|
|
11
|
+
constructor({ ...args }) {
|
|
12
|
+
super(args);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.ContextDefinition = ContextDefinition;
|
|
17
|
+
//# sourceMappingURL=index.cjs.map
|
|
18
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["ContextDefinition","ObjectDefinition","args"],"mappings":";;;;;;AAIO,IAAMA,iBAAAA,GAAN,cAGGC,gCAAAA,CAAAA;EALV;;;EAMI,WAAA,CAAY,EACR,GAAGC,IAAAA,EAAAA,EACuF;AAC1F,IAAA,KAAA,CAAMA,IAAAA,CAAAA;AACV,EAAA;AACJ","file":"index.cjs","sourcesContent":["import type { z } from 'zod/v4';\n\nimport { ObjectDefinition } from '@layerzerolabs/base-definitions';\n\nexport class ContextDefinition<\n Name extends string,\n Schema extends z.ZodSchema,\n> extends ObjectDefinition<Name, Schema, {}> {\n constructor({\n ...args\n }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {\n super(args);\n }\n}\n"]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { z } from 'zod/v4';
|
|
2
|
+
import { ObjectDefinition } from '@layerzerolabs/base-definitions';
|
|
3
|
+
export declare class ContextDefinition<Name extends string, Schema extends z.ZodSchema> extends ObjectDefinition<Name, Schema, {}> {
|
|
4
|
+
constructor({ ...args }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,qBAAa,iBAAiB,CAC1B,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,CAAC,CAAC,SAAS,CAC5B,SAAQ,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;gBAC5B,EACR,GAAG,IAAI,EACV,EAAE,IAAI,CAAC,qBAAqB,CAAC,OAAO,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC;CAG/F"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ObjectDefinition } from '@layerzerolabs/base-definitions';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
|
+
var ContextDefinition = class extends ObjectDefinition {
|
|
6
|
+
static {
|
|
7
|
+
__name(this, "ContextDefinition");
|
|
8
|
+
}
|
|
9
|
+
constructor({ ...args }) {
|
|
10
|
+
super(args);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ContextDefinition };
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["ContextDefinition","ObjectDefinition","args"],"mappings":";;;;AAIO,IAAMA,iBAAAA,GAAN,cAGGC,gBAAAA,CAAAA;EALV;;;EAMI,WAAA,CAAY,EACR,GAAGC,IAAAA,EAAAA,EACuF;AAC1F,IAAA,KAAA,CAAMA,IAAAA,CAAAA;AACV,EAAA;AACJ","file":"index.js","sourcesContent":["import type { z } from 'zod/v4';\n\nimport { ObjectDefinition } from '@layerzerolabs/base-definitions';\n\nexport class ContextDefinition<\n Name extends string,\n Schema extends z.ZodSchema,\n> extends ObjectDefinition<Name, Schema, {}> {\n constructor({\n ...args\n }: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {\n super(args);\n }\n}\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@layerzerolabs/context-node",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"require": "./dist/index.cjs",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"zod": "^3.23.8",
|
|
18
|
+
"@layerzerolabs/base-definitions": "0.0.8"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"tsup": "^8.4.0",
|
|
22
|
+
"@layerzerolabs/typescript-utils": "0.0.8",
|
|
23
|
+
"@layerzerolabs/typescript-configuration": "0.0.8",
|
|
24
|
+
"@layerzerolabs/tsup-configuration": "0.0.8"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "restricted",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsup",
|
|
32
|
+
"clean": "rm -rf ./node_modules .turbo ./dist",
|
|
33
|
+
"dev": "tsup --watch",
|
|
34
|
+
"lint": "eslint . --max-warnings 0",
|
|
35
|
+
"lint:fix": "eslint . --fix --max-warnings 0"
|
|
36
|
+
}
|
|
37
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { z } from 'zod/v4';
|
|
2
|
+
|
|
3
|
+
import { ObjectDefinition } from '@layerzerolabs/base-definitions';
|
|
4
|
+
|
|
5
|
+
export class ContextDefinition<
|
|
6
|
+
Name extends string,
|
|
7
|
+
Schema extends z.ZodSchema,
|
|
8
|
+
> extends ObjectDefinition<Name, Schema, {}> {
|
|
9
|
+
constructor({
|
|
10
|
+
...args
|
|
11
|
+
}: Omit<ConstructorParameters<typeof ObjectDefinition<Name, Schema, {}>>[0], 'dependencies'>) {
|
|
12
|
+
super(args);
|
|
13
|
+
}
|
|
14
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@layerzerolabs/typescript-configuration/tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"strictPropertyInitialization": false,
|
|
7
|
+
"noUnusedLocals": false,
|
|
8
|
+
"noUnusedParameters": false,
|
|
9
|
+
"jsx": "react-jsx"
|
|
10
|
+
},
|
|
11
|
+
"exclude": [
|
|
12
|
+
"node_modules",
|
|
13
|
+
"**/__mocks__/*",
|
|
14
|
+
"**/__tests__/*",
|
|
15
|
+
"**/*.spec.ts",
|
|
16
|
+
"**/*.test.ts",
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"include": ["src/**/*"],
|
|
20
|
+
"ts-node": {
|
|
21
|
+
"files": true,
|
|
22
|
+
"experimentalResolverFeatures": true,
|
|
23
|
+
"compilerOptions": {
|
|
24
|
+
"module": "CommonJS",
|
|
25
|
+
"types": ["node"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|