nestify-js 0.1.4 → 0.2.2

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.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("@nestify-js/core"),l=require("fastify-type-provider-zod"),u=require("@nestify/core"),d=require("@fastify/swagger");d=s(d,1);let f=require("@fastify/swagger-ui");f=s(f,1);let p=require("@nestify-js/shared");function m(e){return function(t,n){(0,u.expectMethodDecorator)(t,n),(0,u.expectObject)(e,`Given opts must be a RouteShorthandOptions of Fastify`),(0,u.metaSetSchema)(n,e)}}async function h(e,t={}){await e.register(d.default,t.swagger),await e.register(f.default,t.ui)}async function g(e,t){return(0,c.fastifyInjecorator)(e,{...t,setup:t.setup??c.setupBasicPipes})}Object.defineProperty(exports,"APP_FILTER",{enumerable:!0,get:function(){return p.APP_FILTER}}),Object.defineProperty(exports,"APP_GUARD",{enumerable:!0,get:function(){return p.APP_GUARD}}),Object.defineProperty(exports,"APP_INTERCEPTOR",{enumerable:!0,get:function(){return p.APP_INTERCEPTOR}}),Object.defineProperty(exports,"APP_LOGGER",{enumerable:!0,get:function(){return p.APP_LOGGER}}),Object.defineProperty(exports,"APP_PIPE",{enumerable:!0,get:function(){return p.APP_PIPE}}),exports.ApiSchema=m,Object.defineProperty(exports,"HttpStatus",{enumerable:!0,get:function(){return p.HttpStatus}}),exports.ZodTypeProvider=l.ZodTypeProvider,exports.apply=g,exports.serializerCompiler=l.serializerCompiler,exports.setupSwagger=h,exports.validatorCompiler=l.validatorCompiler,Object.keys(c).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return c[e]}})});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@nestify-js/core"),t=require("@nestify-js/shared");async function n(t,n){return(0,e.fastifyInjecorator)(t,{...n,setup:n.setup??e.setupBasicPipes})}Object.defineProperty(exports,"APP_FILTER",{enumerable:!0,get:function(){return t.APP_FILTER}}),Object.defineProperty(exports,"APP_GUARD",{enumerable:!0,get:function(){return t.APP_GUARD}}),Object.defineProperty(exports,"APP_INTERCEPTOR",{enumerable:!0,get:function(){return t.APP_INTERCEPTOR}}),Object.defineProperty(exports,"APP_LOGGER",{enumerable:!0,get:function(){return t.APP_LOGGER}}),Object.defineProperty(exports,"APP_PIPE",{enumerable:!0,get:function(){return t.APP_PIPE}}),Object.defineProperty(exports,"HttpStatus",{enumerable:!0,get:function(){return t.HttpStatus}}),exports.apply=n,Object.keys(e).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
package/dist/index.d.cts CHANGED
@@ -2,8 +2,6 @@ import { FastifyInjecoratorOptions } from "@nestify-js/core";
2
2
  import { APP_FILTER, APP_GUARD, APP_INTERCEPTOR, APP_LOGGER, APP_PIPE, HttpStatus } from "@nestify-js/shared";
3
3
  import { FastifyInstance } from "fastify";
4
4
  export * from "@nestify-js/core";
5
- export * from "@nestify-js/schema";
6
- export * from "@nestify-js/swagger";
7
5
 
8
6
  //#region src/index.d.ts
9
7
  /**
package/dist/index.d.mts CHANGED
@@ -2,8 +2,6 @@ import { FastifyInjecoratorOptions } from "@nestify-js/core";
2
2
  import { APP_FILTER, APP_GUARD, APP_INTERCEPTOR, APP_LOGGER, APP_PIPE, HttpStatus } from "@nestify-js/shared";
3
3
  import { FastifyInstance } from "fastify";
4
4
  export * from "@nestify-js/core";
5
- export * from "@nestify-js/schema";
6
- export * from "@nestify-js/swagger";
7
5
 
8
6
  //#region src/index.d.ts
9
7
  /**
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{fastifyInjecorator as e,setupBasicPipes as t}from"@nestify-js/core";import{ZodTypeProvider as n,serializerCompiler as r,validatorCompiler as i}from"fastify-type-provider-zod";import{expectMethodDecorator as a,expectObject as o,metaSetSchema as s}from"@nestify/core";import c from"@fastify/swagger";import l from"@fastify/swagger-ui";import{APP_FILTER as u,APP_GUARD as d,APP_INTERCEPTOR as f,APP_LOGGER as p,APP_PIPE as m,HttpStatus as h}from"@nestify-js/shared";export*from"@nestify-js/core";function g(e){return function(t,n){a(t,n),o(e,`Given opts must be a RouteShorthandOptions of Fastify`),s(n,e)}}async function _(e,t={}){await e.register(c,t.swagger),await e.register(l,t.ui)}async function v(n,r){return e(n,{...r,setup:r.setup??t})}export{u as APP_FILTER,d as APP_GUARD,f as APP_INTERCEPTOR,p as APP_LOGGER,m as APP_PIPE,g as ApiSchema,h as HttpStatus,n as ZodTypeProvider,v as apply,r as serializerCompiler,_ as setupSwagger,i as validatorCompiler};
1
+ import{fastifyInjecorator as e,setupBasicPipes as t}from"@nestify-js/core";import{APP_FILTER as n,APP_GUARD as r,APP_INTERCEPTOR as i,APP_LOGGER as a,APP_PIPE as o,HttpStatus as s}from"@nestify-js/shared";export*from"@nestify-js/core";async function c(n,r){return e(n,{...r,setup:r.setup??t})}export{n as APP_FILTER,r as APP_GUARD,i as APP_INTERCEPTOR,a as APP_LOGGER,o as APP_PIPE,s as HttpStatus,c as apply};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestify-js",
3
- "version": "0.1.4",
3
+ "version": "0.2.2",
4
4
  "description": "A NestJS like fastify plugin for dependency injection",
5
5
  "description_zh": "一个类似于 NestJS 的 Fastify 依赖注入插件",
6
6
  "purpose": "npm",
@@ -40,9 +40,9 @@
40
40
  "@fastify/one-line-logger": "^2.1.0",
41
41
  "@fastify/sensible": "^6.0.4",
42
42
  "@fastify/static": "^9.1.3",
43
- "axios": "^1.18.1",
44
- "fastify": "^5.9.0",
45
- "@nestify-js/core": "0.1.4"
43
+ "fastify": "^5.0.0",
44
+ "@nestify-js/core": "0.2.2",
45
+ "@nestify-js/shared": "0.2.2"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@fastify/multipart": "^9.3.0"