New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alanscodelog/utils

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alanscodelog/utils - npm Package Compare versions

Comparing version 4.0.0-beta.6 to 4.0.0-beta.7

26

package.json
{
"name": "@alanscodelog/utils",
"description": "My utility functions and typescript types.",
"version": "4.0.0-beta.6",
"version": "4.0.0-beta.7",
"module": "./dist/index.js",

@@ -14,5 +14,25 @@ "types": "./dist/index.d.ts",

"./*": {
"types": "./dist/*/index.d.ts",
"import": "./dist/*/index.js"
"types": "./dist/*",
"import": "./dist/*"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"import": "./dist/utils/index.js"
},
"./testing": {
"types": "./dist/testing/index.d.ts",
"import": "./dist/testing/index.js"
},
"./retypes": {
"types": "./dist/retypes/index.d.ts",
"import": "./dist/retypes/index.js"
},
"./types": {
"types": "./dist/types/index.d.ts",
"import": "./dist/types/index.js"
},
"./colors": {
"types": "./dist/colors/index.d.ts",
"import": "./dist/colors/index.js"
},
"./node": {

@@ -19,0 +39,0 @@ "types": "./dist/index_node.d.ts",

@@ -37,3 +37,9 @@ ![Docs](https://github.com/alanscodelog/utils/workflows/Docs/badge.svg)

import { MakeOptional, ...} from "@alanscodelog/utils/types"
// direct imports are also supported
import {debounce} from "@alanscodelog/utils/utils/debounce.js"
```
Vite seems to properly treeshake the 99.9%\* of the root imports, but it might be a problem with other bundlers, in which case import from one of the export paths.
\* There is one small namespace (Result) that it does not seem to be able to treeshake, but this is regardless of where you import it from, unless you use direct imports everywhere.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc