@baeta/util-path 0.1.2 → 0.1.4
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/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/README.md +139 -0
- package/package.json +13 -8
- package/dist/index.cjs +0 -88
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @baeta/util-path
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b59db50`](https://github.com/andreisergiu98/baeta/commit/b59db501a83275ab2d964933080e688a3a5d8820) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add readme
|
|
8
|
+
|
|
9
|
+
## 0.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#180](https://github.com/andreisergiu98/baeta/pull/180) [`483c709`](https://github.com/andreisergiu98/baeta/commit/483c70932f815fd114732c00b74f9488d7924c72) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Raise minimum required NodeJS version to 22.12.0. Drop CommonJS builds in favor of the require_esm feature from NodeJS 22.12.0 onwards.
|
|
14
|
+
|
|
15
|
+
- [`de6e89c`](https://github.com/andreisergiu98/baeta/commit/de6e89c1b592e280967c73a4137d24ee56ef1857) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - raise es target to 2024
|
|
16
|
+
|
|
3
17
|
## 0.1.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Pampu Andrei
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/andreisergiu98/baeta/refs/heads/main/website/static/img/logo-baeta.svg" alt="Baeta Logo" width="150"/>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<div align="center">
|
|
6
|
+
<h1>Baeta</h1>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@baeta/cli"><img src="https://img.shields.io/npm/v/@baeta/cli.svg?style=flat" /></a>
|
|
8
|
+
<a href="https://github.com/andreisergiu98/baeta/actions/workflows/testing.yml"><img src="https://img.shields.io/github/actions/workflow/status/andreisergiu98/baeta/testing.yml" /></a>
|
|
9
|
+
<a href="https://github.com/andreisergiu98/baeta/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" /></a>
|
|
10
|
+
<a href="https://github.com/andreisergiu98/baeta/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" /></a>
|
|
11
|
+
<br />
|
|
12
|
+
<br />
|
|
13
|
+
<a href="https://baeta.io/docs/getting-started/installation">Getting Started</a>
|
|
14
|
+
<span> • </span>
|
|
15
|
+
<a href="https://www.baeta.io/">Website</a>
|
|
16
|
+
<span> • </span>
|
|
17
|
+
<a href="https://baeta.io/docs/intro">Docs</a>
|
|
18
|
+
<span> • </span>
|
|
19
|
+
<a href="https://github.com/andreisergiu98/baeta/tree/main/examples">Examples</a>
|
|
20
|
+
<span> • </span>
|
|
21
|
+
<a href="https://discord.gg/BHFXHvyj">Discord</a>
|
|
22
|
+
<br />
|
|
23
|
+
<hr />
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
# What is Baeta?
|
|
27
|
+
|
|
28
|
+
Building GraphQL APIs shouldn't be complicated. **Baeta** is a modern, modular, open-source GraphQL framework designed with flexibility in mind. It follows a granular approach where you only add what you need, helping developers focus on what matters most - creating powerful, scalable APIs without the boilerplate.
|
|
29
|
+
|
|
30
|
+
### Key Features
|
|
31
|
+
|
|
32
|
+
- **Modular Architecture**: Organize your API into manageable modules
|
|
33
|
+
- **Schema-First Development**: Define your API contract upfront
|
|
34
|
+
- **Type Safety**: Automatic code generation for type-safe development
|
|
35
|
+
- **Middleware & Directives**: Easy integration of custom behaviors
|
|
36
|
+
- **High Performance**: Built for scalability and efficiency
|
|
37
|
+
|
|
38
|
+
#### And optional extensions and plugins
|
|
39
|
+
|
|
40
|
+
- **@baeta/extension-auth**: Add powerful scope-based authorization
|
|
41
|
+
- **@baeta/extension-cache**: Implement automatic caching with simple update patterns
|
|
42
|
+
- ... and more!
|
|
43
|
+
|
|
44
|
+
## Why use Baeta?
|
|
45
|
+
|
|
46
|
+
Baeta makes it easy to build better GraphQL APIs while staying flexible. Here's how:
|
|
47
|
+
|
|
48
|
+
**Granular and Progressive:** Start small and add features as you need them. Whether you're building a simple API or a complex system, Baeta scales with your needs.
|
|
49
|
+
|
|
50
|
+
**Modular architecture:** Baeta's modular design allows you to organize your GraphQL API into smaller, more manageable modules that can be added or removed as needed. This makes it easier to maintain and scale your API over time.
|
|
51
|
+
|
|
52
|
+
**Schema-first approach:** With Baeta, you define your schema first, and then logic and resolvers. This approach ensures a consistent and well-defined API for your clients and reduces boilerplate code.
|
|
53
|
+
|
|
54
|
+
## How it Works
|
|
55
|
+
|
|
56
|
+
#### 1. Define your schema
|
|
57
|
+
|
|
58
|
+
```graphql
|
|
59
|
+
type User {
|
|
60
|
+
id: ID!
|
|
61
|
+
name: String!
|
|
62
|
+
email: String!
|
|
63
|
+
age: Int
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
input UserWhereUnique {
|
|
67
|
+
id: ID
|
|
68
|
+
email: String
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
type Query {
|
|
72
|
+
user(where: UserWhereUnique!): User!
|
|
73
|
+
users: [User!]!
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
#### 2. Implement your resolvers
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { getUserModule } from "./typedef";
|
|
81
|
+
|
|
82
|
+
const { Query } = getUserModule();
|
|
83
|
+
|
|
84
|
+
Query.user(({ args }) => {
|
|
85
|
+
return dataSource.user.find(args.where);
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
Query.users(() => {
|
|
89
|
+
return dataSource.user.findMany();
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
#### 3. Add authorization
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
const { Query, Mutation } = getUserModule();
|
|
97
|
+
|
|
98
|
+
Query.users.$auth({
|
|
99
|
+
$or: {
|
|
100
|
+
isPublic: true,
|
|
101
|
+
isLoggedIn: true,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### 4. Add caching
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
import { getUserModule } from "./typedef";
|
|
110
|
+
|
|
111
|
+
const { User, Query } = getUserModule();
|
|
112
|
+
|
|
113
|
+
export const userCache = User.$createCache();
|
|
114
|
+
|
|
115
|
+
Query.user.$useCache(userCache);
|
|
116
|
+
Query.users.$useCache(userCache);
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Compatibility
|
|
120
|
+
|
|
121
|
+
Baeta is compatible with all GraphQL servers, which makes it easy to integrate with your existing stack. It works seamlessly with popular GraphQL server libraries such as **Graphql Yoga** and **Apollo Server**, as well as other popular tools like **Prisma**, **Drizzle** and **Kysely**.
|
|
122
|
+
|
|
123
|
+
Baeta's development tools are built for Node.js, but the runtime code is environment-agnostic. This means your Baeta applications can run anywhere JavaScript runs, including:
|
|
124
|
+
|
|
125
|
+
- Deno
|
|
126
|
+
- Cloudflare Workers
|
|
127
|
+
- AWS Lambda
|
|
128
|
+
- Vercel Edge Functions
|
|
129
|
+
- Bun
|
|
130
|
+
- Node.js
|
|
131
|
+
- Any other JavaScript runtime
|
|
132
|
+
|
|
133
|
+
## Credits
|
|
134
|
+
|
|
135
|
+
Baeta was inspired by several amazing projects and people in the GraphQL ecosystem. Check out our [Credits page](https://baeta.io/docs/credits) to learn more about the individuals and projects that influenced Baeta's development.
|
|
136
|
+
|
|
137
|
+
## License
|
|
138
|
+
|
|
139
|
+
Baeta is licensed under the [MIT License](./LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baeta/util-path",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"baeta",
|
|
6
6
|
"graphql",
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
|
-
"
|
|
32
|
-
"require": "./dist/index.cjs"
|
|
31
|
+
"default": "./dist/index.js"
|
|
33
32
|
}
|
|
34
33
|
},
|
|
35
34
|
"types": "dist/index.d.ts",
|
|
@@ -50,20 +49,19 @@
|
|
|
50
49
|
"devDependencies": {
|
|
51
50
|
"@baeta/builder": "^0.0.0",
|
|
52
51
|
"@baeta/tsconfig": "^0.0.0",
|
|
53
|
-
"@types/node": "^22.
|
|
52
|
+
"@types/node": "^22.10.1",
|
|
54
53
|
"ava": "^6.2.0",
|
|
55
|
-
"typescript": "^5.
|
|
54
|
+
"typescript": "^5.7.2"
|
|
56
55
|
},
|
|
57
56
|
"engines": {
|
|
58
|
-
"node": ">=22.
|
|
57
|
+
"node": ">=22.12.0"
|
|
59
58
|
},
|
|
60
59
|
"publishConfig": {
|
|
61
60
|
"access": "public",
|
|
62
61
|
"exports": {
|
|
63
62
|
".": {
|
|
64
63
|
"types": "./dist/index.d.ts",
|
|
65
|
-
"
|
|
66
|
-
"require": "./dist/index.cjs"
|
|
64
|
+
"default": "./dist/index.js"
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
},
|
|
@@ -75,5 +73,12 @@
|
|
|
75
73
|
"--no-warnings",
|
|
76
74
|
"--experimental-transform-types"
|
|
77
75
|
]
|
|
76
|
+
},
|
|
77
|
+
"typedocOptions": {
|
|
78
|
+
"entryPoints": [
|
|
79
|
+
"./index.ts"
|
|
80
|
+
],
|
|
81
|
+
"readme": "none",
|
|
82
|
+
"tsconfig": "./tsconfig.json"
|
|
78
83
|
}
|
|
79
84
|
}
|
package/dist/index.cjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// index.ts
|
|
2
|
-
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
3
|
-
var _upath = require('upath'); var _upath2 = _interopRequireDefault(_upath);
|
|
4
|
-
function posixPath(pathname) {
|
|
5
|
-
return pathname.split(_path2.default.win32.sep).join(_path2.default.posix.sep);
|
|
6
|
-
}
|
|
7
|
-
function winPath(pathname) {
|
|
8
|
-
return pathname.split(_path2.default.posix.sep).join(_path2.default.win32.sep);
|
|
9
|
-
}
|
|
10
|
-
var addExt = _upath2.default.addExt;
|
|
11
|
-
var basename = _upath2.default.basename;
|
|
12
|
-
var changeExt = _upath2.default.changeExt;
|
|
13
|
-
var defaultExt = _upath2.default.defaultExt;
|
|
14
|
-
var delimiter = _upath2.default.delimiter;
|
|
15
|
-
var dirname = _upath2.default.dirname;
|
|
16
|
-
var extname = _upath2.default.extname;
|
|
17
|
-
var format = _upath2.default.format;
|
|
18
|
-
var isAbsolute = _upath2.default.isAbsolute;
|
|
19
|
-
var join = _upath2.default.join;
|
|
20
|
-
var joinSafe = _upath2.default.joinSafe;
|
|
21
|
-
var normalize = _upath2.default.normalize;
|
|
22
|
-
var normalizeSafe = _upath2.default.normalizeSafe;
|
|
23
|
-
var normalizeTrim = _upath2.default.normalizeTrim;
|
|
24
|
-
var parse = _upath2.default.parse;
|
|
25
|
-
var posix = _upath2.default.posix;
|
|
26
|
-
var relative = _upath2.default.relative;
|
|
27
|
-
var removeExt = _upath2.default.removeExt;
|
|
28
|
-
var resolve = _upath2.default.resolve;
|
|
29
|
-
var sep = _upath2.default.sep;
|
|
30
|
-
var toUnix = _upath2.default.toUnix;
|
|
31
|
-
var trimExt = _upath2.default.trimExt;
|
|
32
|
-
var win32 = _upath2.default.win32;
|
|
33
|
-
var util_path_default = {
|
|
34
|
-
addExt,
|
|
35
|
-
basename,
|
|
36
|
-
changeExt,
|
|
37
|
-
defaultExt,
|
|
38
|
-
delimiter,
|
|
39
|
-
dirname,
|
|
40
|
-
extname,
|
|
41
|
-
format,
|
|
42
|
-
isAbsolute,
|
|
43
|
-
join,
|
|
44
|
-
joinSafe,
|
|
45
|
-
normalize,
|
|
46
|
-
normalizeSafe,
|
|
47
|
-
normalizeTrim,
|
|
48
|
-
parse,
|
|
49
|
-
posix,
|
|
50
|
-
relative,
|
|
51
|
-
removeExt,
|
|
52
|
-
resolve,
|
|
53
|
-
sep,
|
|
54
|
-
toUnix,
|
|
55
|
-
trimExt,
|
|
56
|
-
win32,
|
|
57
|
-
posixPath,
|
|
58
|
-
winPath
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
exports.addExt = addExt; exports.basename = basename; exports.changeExt = changeExt; exports.default = util_path_default; exports.defaultExt = defaultExt; exports.delimiter = delimiter; exports.dirname = dirname; exports.extname = extname; exports.format = format; exports.isAbsolute = isAbsolute; exports.join = join; exports.joinSafe = joinSafe; exports.normalize = normalize; exports.normalizeSafe = normalizeSafe; exports.normalizeTrim = normalizeTrim; exports.parse = parse; exports.posix = posix; exports.posixPath = posixPath; exports.relative = relative; exports.removeExt = removeExt; exports.resolve = resolve; exports.sep = sep; exports.toUnix = toUnix; exports.trimExt = trimExt; exports.win32 = win32; exports.winPath = winPath;
|
|
88
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/baeta/baeta/packages/util-path/dist/index.cjs","../index.ts"],"names":[],"mappings":"AAAA;ACAA,wEAAiB;AACjB,4EAAkB;AAEX,SAAS,SAAA,CAAU,QAAA,EAAkB;AAC3C,EAAA,OAAO,QAAA,CAAS,KAAA,CAAM,cAAA,CAAK,KAAA,CAAM,GAAG,CAAA,CAAE,IAAA,CAAK,cAAA,CAAK,KAAA,CAAM,GAAG,CAAA;AAC1D;AAEO,SAAS,OAAA,CAAQ,QAAA,EAAkB;AACzC,EAAA,OAAO,QAAA,CAAS,KAAA,CAAM,cAAA,CAAK,KAAA,CAAM,GAAG,CAAA,CAAE,IAAA,CAAK,cAAA,CAAK,KAAA,CAAM,GAAG,CAAA;AAC1D;AAEO,IAAM,OAAA,EAAS,eAAA,CAAM,MAAA;AACrB,IAAM,SAAA,EAAW,eAAA,CAAM,QAAA;AACvB,IAAM,UAAA,EAAY,eAAA,CAAM,SAAA;AACxB,IAAM,WAAA,EAAa,eAAA,CAAM,UAAA;AACzB,IAAM,UAAA,EAAY,eAAA,CAAM,SAAA;AACxB,IAAM,QAAA,EAAU,eAAA,CAAM,OAAA;AACtB,IAAM,QAAA,EAAU,eAAA,CAAM,OAAA;AACtB,IAAM,OAAA,EAAS,eAAA,CAAM,MAAA;AACrB,IAAM,WAAA,EAAa,eAAA,CAAM,UAAA;AACzB,IAAM,KAAA,EAAO,eAAA,CAAM,IAAA;AACnB,IAAM,SAAA,EAAW,eAAA,CAAM,QAAA;AACvB,IAAM,UAAA,EAAY,eAAA,CAAM,SAAA;AACxB,IAAM,cAAA,EAAgB,eAAA,CAAM,aAAA;AAC5B,IAAM,cAAA,EAAgB,eAAA,CAAM,aAAA;AAC5B,IAAM,MAAA,EAAQ,eAAA,CAAM,KAAA;AACpB,IAAM,MAAA,EAAQ,eAAA,CAAM,KAAA;AACpB,IAAM,SAAA,EAAW,eAAA,CAAM,QAAA;AACvB,IAAM,UAAA,EAAY,eAAA,CAAM,SAAA;AACxB,IAAM,QAAA,EAAU,eAAA,CAAM,OAAA;AACtB,IAAM,IAAA,EAAM,eAAA,CAAM,GAAA;AAClB,IAAM,OAAA,EAAS,eAAA,CAAM,MAAA;AACrB,IAAM,QAAA,EAAU,eAAA,CAAM,OAAA;AACtB,IAAM,MAAA,EAAQ,eAAA,CAAM,KAAA;AAE3B,IAAO,kBAAA,EAAQ;AAAA,EACd,MAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA,IAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,aAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,GAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,SAAA;AAAA,EACA;AACD,CAAA;ADFA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,quBAAC","file":"/home/runner/work/baeta/baeta/packages/util-path/dist/index.cjs","sourcesContent":[null,"import path from 'node:path';\nimport upath from 'upath';\n\nexport function posixPath(pathname: string) {\n\treturn pathname.split(path.win32.sep).join(path.posix.sep);\n}\n\nexport function winPath(pathname: string) {\n\treturn pathname.split(path.posix.sep).join(path.win32.sep);\n}\n\nexport const addExt = upath.addExt;\nexport const basename = upath.basename;\nexport const changeExt = upath.changeExt;\nexport const defaultExt = upath.defaultExt;\nexport const delimiter = upath.delimiter;\nexport const dirname = upath.dirname;\nexport const extname = upath.extname;\nexport const format = upath.format;\nexport const isAbsolute = upath.isAbsolute;\nexport const join = upath.join;\nexport const joinSafe = upath.joinSafe;\nexport const normalize = upath.normalize;\nexport const normalizeSafe = upath.normalizeSafe;\nexport const normalizeTrim = upath.normalizeTrim;\nexport const parse = upath.parse;\nexport const posix = upath.posix;\nexport const relative = upath.relative;\nexport const removeExt = upath.removeExt;\nexport const resolve = upath.resolve;\nexport const sep = upath.sep;\nexport const toUnix = upath.toUnix;\nexport const trimExt = upath.trimExt;\nexport const win32 = upath.win32;\n\nexport default {\n\taddExt,\n\tbasename,\n\tchangeExt,\n\tdefaultExt,\n\tdelimiter,\n\tdirname,\n\textname,\n\tformat,\n\tisAbsolute,\n\tjoin,\n\tjoinSafe,\n\tnormalize,\n\tnormalizeSafe,\n\tnormalizeTrim,\n\tparse,\n\tposix,\n\trelative,\n\tremoveExt,\n\tresolve,\n\tsep,\n\ttoUnix,\n\ttrimExt,\n\twin32,\n\tposixPath,\n\twinPath,\n};\n"]}
|
package/dist/index.d.cts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import upath from 'upath';
|
|
2
|
-
|
|
3
|
-
declare function posixPath(pathname: string): string;
|
|
4
|
-
declare function winPath(pathname: string): string;
|
|
5
|
-
declare const addExt: typeof upath.addExt;
|
|
6
|
-
declare const basename: typeof upath.basename;
|
|
7
|
-
declare const changeExt: typeof upath.changeExt;
|
|
8
|
-
declare const defaultExt: typeof upath.defaultExt;
|
|
9
|
-
declare const delimiter: string;
|
|
10
|
-
declare const dirname: typeof upath.dirname;
|
|
11
|
-
declare const extname: typeof upath.extname;
|
|
12
|
-
declare const format: typeof upath.format;
|
|
13
|
-
declare const isAbsolute: typeof upath.isAbsolute;
|
|
14
|
-
declare const join: typeof upath.join;
|
|
15
|
-
declare const joinSafe: typeof upath.joinSafe;
|
|
16
|
-
declare const normalize: typeof upath.normalize;
|
|
17
|
-
declare const normalizeSafe: typeof upath.normalizeSafe;
|
|
18
|
-
declare const normalizeTrim: typeof upath.normalizeTrim;
|
|
19
|
-
declare const parse: typeof upath.parse;
|
|
20
|
-
declare const posix: typeof upath.posix;
|
|
21
|
-
declare const relative: typeof upath.relative;
|
|
22
|
-
declare const removeExt: typeof upath.removeExt;
|
|
23
|
-
declare const resolve: typeof upath.resolve;
|
|
24
|
-
declare const sep: string;
|
|
25
|
-
declare const toUnix: typeof upath.toUnix;
|
|
26
|
-
declare const trimExt: typeof upath.trimExt;
|
|
27
|
-
declare const win32: typeof upath.win32;
|
|
28
|
-
declare const _default: {
|
|
29
|
-
addExt: typeof upath.addExt;
|
|
30
|
-
basename: typeof upath.basename;
|
|
31
|
-
changeExt: typeof upath.changeExt;
|
|
32
|
-
defaultExt: typeof upath.defaultExt;
|
|
33
|
-
delimiter: string;
|
|
34
|
-
dirname: typeof upath.dirname;
|
|
35
|
-
extname: typeof upath.extname;
|
|
36
|
-
format: typeof upath.format;
|
|
37
|
-
isAbsolute: typeof upath.isAbsolute;
|
|
38
|
-
join: typeof upath.join;
|
|
39
|
-
joinSafe: typeof upath.joinSafe;
|
|
40
|
-
normalize: typeof upath.normalize;
|
|
41
|
-
normalizeSafe: typeof upath.normalizeSafe;
|
|
42
|
-
normalizeTrim: typeof upath.normalizeTrim;
|
|
43
|
-
parse: typeof upath.parse;
|
|
44
|
-
posix: typeof upath.posix;
|
|
45
|
-
relative: typeof upath.relative;
|
|
46
|
-
removeExt: typeof upath.removeExt;
|
|
47
|
-
resolve: typeof upath.resolve;
|
|
48
|
-
sep: string;
|
|
49
|
-
toUnix: typeof upath.toUnix;
|
|
50
|
-
trimExt: typeof upath.trimExt;
|
|
51
|
-
win32: typeof upath.win32;
|
|
52
|
-
posixPath: typeof posixPath;
|
|
53
|
-
winPath: typeof winPath;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export { addExt, basename, changeExt, _default as default, defaultExt, delimiter, dirname, extname, format, isAbsolute, join, joinSafe, normalize, normalizeSafe, normalizeTrim, parse, posix, posixPath, relative, removeExt, resolve, sep, toUnix, trimExt, win32, winPath };
|