blog icon indicating copy to clipboard operation
blog copied to clipboard

没事写写文章,喜欢的话请点star,想订阅点watch,千万别fork!

Results 59 blog issues
Sort by recently updated
recently updated
newest added

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...

dependencies

我发现比我想象要长,打算把实战部分拆分成中和下来讲解。 通过[上篇](https://github.com/jiayisheji/blog/issues/18)学习,相信大家对 `Nest` 有大概印象,但是你还是看不出它有什么特别的地方,下篇将为你介绍项目实战中`Nest`如何使用各种特性和一些坑和解决方案。[源码](https://github.com/jiayisheji/nest-cnode) 这篇主要内容: - 项目架构规划 - 入口文件配置说明 - 依赖安装 - 配置模板引擎和静态文件 - 静态模板 - 系统配置和应用配置 - 数据库之用户表 - 注册 - 使用node-mailer发送邮件 - 登录和第三方认证github登录 - session和cookie - 找回密码和登出 ##...

Nest

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...

dependencies

Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.39. Release notes Sourced from postcss's releases. 7.0.39 Reduce package size. Backport nanocolors to picocolors migration. 7.0.38 Update Processor#version. 7.0.37 Backport chalk to nanocolors migration....

dependencies

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4. Changelog Sourced from async's changelog. v2.6.4 Fix potential prototype pollution exploit (#1828) Commits c6bdaca Version 2.6.4 8870da9 Update built files 4df6754 update changelog 8f7f903...

dependencies

最近一个公司官网需要做后台管理,自告奋勇伸出手接下这活。我本来计划技术栈是 `Nestjs` + `MongoDB`,看我的github的人应该发现,我只会这个。和运维一番沟通后,他说不支持 `MongoDB`,仅支持 `Mysql`。 > 第一次使用 `Mysql` 这是一段神奇的开始... 在 nestjs 官网文档有个专门的 [database](https://docs.nestjs.com/techniques/database) 板块。 首推就是 [Typeorm](https://github.com/typeorm/typeorm) ,这篇也算是一个入门教程。(ps:里面也有无尽的坑) nestjs 也有其他几个操作数据库的的 orm: - [Prisma](https://docs.nestjs.com/recipes/prisma) - [MikroORM](https://docs.nestjs.com/recipes/mikroorm) - [Sequelize](https://docs.nestjs.com/recipes/sql-sequelize) - [TypeORM](https://docs.nestjs.com/recipes/sql-typeorm) 以上都是操作...

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.10. Commits 8cd4c6c 1.5.10 ce7a01f [fix] Improve handling of empty port 0071490 [doc] Update JSDoc comment a7044e3 [minor] Use more descriptive variable name d547792 [security]...

dependencies

Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.27.0. Release notes Sourced from prismjs's releases. v1.27.0 Release 1.27.0 v1.26.0 Release 1.26.0 v1.25.0 Release 1.25.0 v1.24.1 Release 1.24.1 v1.24.0 Release 1.24.0 Changelog Sourced from...

dependencies

TypeScript 对于许多 Javascript 开发人员来说是难以理解的。引起麻烦的一个领域是高级类型。这个领域的一部分是 TypeScript 中内置的实用程序类型。它们可以帮助我们从现有类型中创建新的类型。在本文中,我们将了解其中一些实用工具类型如何工作以及如何使用它们。 ## 实用工具类型简要介绍 TypeScript 为处理类型提供了一个强大的系统。这里有一些基本类型我们已经从 [JavaScript](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Data_structures) 中了解。例如,数据类型如 `number`,`string`,`boolean`,`obejct`,`symbol`,`null`,`undefined`。这并不是 [TypeScript](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html) 提供的所有功能。在这些类型之上还有一些内置实用工具类型。 有时候,这些实用工具类型也是最难以理解的。当初次看到这些类型时尤为明显。好消息是,如果你理解一个重要的事情,这些类型实际上并不困难。 所有这些内置实用工具类型实际上都是简单的函数,能看这篇文章,说明你已经从 JavaScript 中知道的函数。这里的主要区别是,工具函数处理业务,这些实用工具类型,只处理类型。这些工具类型所做的就是将类型从一种类型转换为另一种类型。 这个输入是开始时使用的某种类型。还可以提供多种类型。接下来,该工具类型将转换该输入并返回适当的输出。所发生的转换类型取决于使用的实用工具类型。 [Typescipt](https://github.com/microsoft/TypeScript/blob/main/src/lib/es5.d.ts) 内置了 16 个[工具类型](https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types) 和 4 个字符串类型(只能在字符串中使用,这里暂时不介绍它们),接下来我们就来: Let's learn them...