Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ jobs:
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
<script setup>
import { ref, provide } from 'vue'
import { countSymbol } from './injectionSymbols'

// provide static value
provide('path', '/project/')

// provide reactive value
const count = ref(0)
provide('count', count)

// provide with Symbol keys
provide(countSymbol, count)
</script>
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
98 changes: 98 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,101 @@
},
"packageManager": "[email protected]"
}
{
"name": "magic-regexp",
"version": "0.8.0",
"packageManager": "[email protected]",
"description": "A compiled-away, type-safe, readable RegExp alternative",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/unjs/magic-regexp.git"
},
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./converter": {
"import": "./dist/converter.mjs",
"require": "./dist/converter.cjs"
},
"./transform": {
"import": "./dist/transform.mjs",
"require": "./dist/transform.cjs"
},
"./further-magic": {
"import": "./dist/further-magic.mjs",
"require": "./dist/further-magic.cjs"
},
"./nuxt": "./nuxt.mjs"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"further-magic.d.ts",
"nuxt.mjs",
"transform.d.ts"
],
"scripts": {
"build": "unbuild",
"dev": "vitest dev",
"docs:generate": "nuxi generate docs",
"lint": "eslint --fix .",
"prepare": "npx simple-git-hooks && pnpm build",
"prepublishOnly": "pnpm lint && pnpm test",
"release": "bumpp && npm publish",
"test": "vitest run",
"test:types": "tsc --noEmit"
},
"dependencies": {
"estree-walker": "^3.0.3",
"magic-string": "^0.30.12",
"mlly": "^1.7.2",
"regexp-tree": "^0.1.27",
"type-level-regexp": "~0.1.17",
"ufo": "^1.5.4",
"unplugin": "^1.14.1"
},
"devDependencies": {
"@antfu/eslint-config": "3.7.3",
"@codspeed/vitest-plugin": "3.1.1",
"@nuxt/kit": "3.13.2",
"@types/estree": "1.0.6",
"@types/node": "22.7.5",
"@vitest/coverage-v8": "2.1.2",
"acorn": "8.13.0",
"bumpp": "9.7.1",
"eslint": "9.12.0",
"expect-type": "1.1.0",
"lint-staged": "latest",
"rollup": "4.24.0",
"simple-git-hooks": "2.11.1",
"typescript": "5.6.3",
"unbuild": "2.0.0",
"vite": "5.4.9",
"vitest": "2.1.2"
},
"pnpm": {
"patchedDependencies": {
"undocs": "patches/undocs.patch"
}
},
"resolutions": {
"magic-regexp": "link:.",
"nuxt": "3.13.2",
"vite": "5.4.9",
"vue": "3.5.12"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*": [
"npx eslint --fix"
]
}
}
Loading