Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

components-helper

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

components-helper - npm Package Versions

2

2.2.0

Diff

Changelog

Source

2.2.0

berak change

  • change the type to module (#45)
- index.js
+ index.cjs
- index.es.js
+ index.js
tolking
published 2.1.5 •

Changelog

Source

2.1.5

fix

  • optimize file writing (#42)
  • incompatible with pure number types (#43)
tolking
published 2.1.4 •

Changelog

Source

2.1.4

feat

  • add fastGlobConfig for fast-glob (#39)

fix

  • the attribute-value should change with type (#38)
tolking
published 2.1.3 •

Changelog

Source

2.1.3

feat

  • compatible with more types
  • move events to js/events
  • add config slotsType (#36)
tolking
published 2.1.2 •

Changelog

Source

2.1.2

feat

  • support filter options from type (view instructions for use)
  • export utils functions

fix

  • miss type boolean
  • partial separator not replaced
tolking
published 2.1.1 •

Changelog

Source

2.1.1

feat

  • add config reWebTypesType
  • improve types for web-types
tolking
published 2.1.0 •

Changelog

Source

2.1.0

feat

  • update web-types to 2.0
  • add attribute enum autosuggestion for web-types
tolking
published 2.0.0 •

Changelog

Source

2.0.0

feat

  • export all function
  • use matchAll replace match
  • add RegExp for titleRegExp tableRegExp and fileNameRegExp
migration guide
- const helper = require('../lib/index')
+ const helper = require('../lib/index').default
# or
- const helper = require('../lib/index')
+ const { main } = require('../lib/index')

It is recommended to replace regular strings with RegExp

{
-  titleRegExp: '#+\\s+(.*)\\n+([^(#|\\n)]*)',
+  titleRegExp: /#+\s+(.*)\n+([^(#|\n)]*)/g,

-  titleRegExp: '#+\\s+(.*)\\n+>\\s*([^(#|\\n)]*)',
+  titleRegExp: /#+\s+(.*)\n+>\s*([^(#|\n)]*)/g,

-  tableRegExp: '#+\\s+(.*)\\n+(\\|?.+\\|.+)\\n\\|?\\s*:?-+:?\\s*\\|.+((\\n\\|?.+\\|.+)+)',
+  tableRegExp: /#+\s+(.*)\n+(\|?.+\|.+)\n\|?\s*:?-+:?\s*\|.+((\n\|?.+\|.+)+)/g,

-  tableRegExp: '#+\\s+(.*\\s*Props|.*\\s*Events|.*\\s*Slots|.*\\s*Directives)\\s*\\n+(\\|?.+\\|.+)\\n\\|?\\s*:?-+:?\\s*\\|.+((\\n\\|?.+\\|.+)+)',
+  tableRegExp: /#+\s+(.*\s*Props|.*\s*Events|.*\s*Slots|.*\s*Directives)\n+(\|?.+\|.+)\n\|?\s*:?-+:?\s*\|.+((\n\|?.+\|.+)+)/g,

-  fileNameRegExp: '\\/((\\w|-)+)\\.\\w+$',
+  fileNameRegExp: /\/((\w|-)+)\.\w+$/,
}
tolking
published 1.0.5 •

Changelog

Source

1.0.5

feat

  • export all types

fix

  • support windows path
tolking
published 1.0.4 •

Changelog

Source

1.0.4

feat

  • add reWebTypesSource config

fix

  • the header error of description in tags
2
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