@createiq/backend-licenses 1.0.0
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/README.md +5 -0
- package/dist/index.cjs +24906 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +24883 -0
- package/dist/index.js.map +1 -0
- package/index.ts +36 -0
- package/oss-licenses.json +2867 -0
- package/oss-licenses.json.sha256 +1 -0
- package/package.json +24 -0
- package/tsconfig.json +16 -0
- package/tsup.config.ts +14 -0
package/index.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type Info } from 'spdx-expression-parse'
|
|
2
|
+
import ossLicenses from './oss-licenses.json'
|
|
3
|
+
|
|
4
|
+
export type LicenseInformation = {
|
|
5
|
+
/**
|
|
6
|
+
* The fully qualified name of the package
|
|
7
|
+
*/
|
|
8
|
+
name: string
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The declared author of the package, if known
|
|
12
|
+
*/
|
|
13
|
+
author?: string
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The website of the package, if known
|
|
17
|
+
*/
|
|
18
|
+
website?: string
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The SPDX license information for the package
|
|
22
|
+
*/
|
|
23
|
+
licenses?: Info
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The license text of the package
|
|
27
|
+
*/
|
|
28
|
+
licenseText?: string
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Any additional notice text for the package
|
|
32
|
+
*/
|
|
33
|
+
noticeText?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default (ossLicenses as readonly LicenseInformation[])
|