@jakubmazanec/carson-templates 0.1.0-9029e49

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/LICENSE.md ADDED
@@ -0,0 +1,18 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Jakub Mazanec
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction,
7
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
8
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
15
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
17
+ OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ <div align="center">
2
+
3
+ # @jakubmazanec/carson-templates
4
+
5
+ <!-- description -->Collection of Carson templates.<!-- description -->
6
+
7
+ </div>
8
+
9
+ ## Installation
10
+
11
+ ```sh
12
+ npm install @jakubmazanec/carson-templates
13
+ ```
14
+
15
+ #### Prerequisites
16
+
17
+ - Node.js 16 or later
18
+
19
+ ## Usage
20
+
21
+ 🚧 This section is under development. Please check back later for updates.
22
+
23
+ ## Documentation
24
+
25
+ See [API reference](./docs) for auto-generated documentation.
26
+
27
+ ## Contributing
28
+
29
+ If you want to contribute, see [CONTRIBUTING](./CONTRIBUTING.md) for details.
30
+
31
+ ## License
32
+
33
+ This package is licensed under the MIT license. See [LICENSE](./LICENSE.md) for details.
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default as lodash } from 'lodash';
2
+ export declare function getMajorVersion(version: string): number;
package/dist/main.js ADDED
@@ -0,0 +1,6 @@
1
+ export { default as lodash } from 'lodash';
2
+ export function getMajorVersion(version) {
3
+ return Number(version.split('.')[0].replace(/\D/, ''));
4
+ }
5
+
6
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/main.ts"],"sourcesContent":["export {default as lodash} from 'lodash';\n\nexport function getMajorVersion(version: string) {\n return Number(version.split('.')[0]!.replace(/\\D/, ''));\n}\n"],"names":["default","lodash","getMajorVersion","version","Number","split","replace"],"mappings":"AAAA,SAAQA,WAAWC,MAAM,QAAO,SAAS;AAEzC,OAAO,SAASC,gBAAgBC,OAAe;IAC7C,OAAOC,OAAOD,QAAQE,MAAM,IAAI,CAAC,EAAE,CAAEC,QAAQ,MAAM;AACrD"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@jakubmazanec/carson-templates",
3
+ "version": "0.1.0-9029e49",
4
+ "description": "Collection of Carson templates.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/jakubmazanec/js-tools",
8
+ "directory": "packages/carson-templates"
9
+ },
10
+ "license": "MIT",
11
+ "author": "Jakub Mazanec <jakub@mazanec.dev>",
12
+ "sideEffects": false,
13
+ "type": "module",
14
+ "exports": {
15
+ ".": "./dist/main.js",
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "src"
21
+ ],
22
+ "scripts": {
23
+ "build": "swc src -d dist && tsc",
24
+ "clean": "del-cli dist *.tsbuildinfo",
25
+ "document": "typedoc --options typedoc.config.cjs",
26
+ "format": "prettier . --write --ignore-unknown --ignore-path ../../.prettierignore",
27
+ "lint": "eslint .",
28
+ "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
29
+ "typecheck": "tsc --project tsconfig.typecheck.json"
30
+ },
31
+ "dependencies": {
32
+ "lodash": "^4.17.21"
33
+ },
34
+ "devDependencies": {
35
+ "@jest/globals": "^29.5.0",
36
+ "@types/lodash": "^4.14.195"
37
+ },
38
+ "packageManager": "npm@8.19.4",
39
+ "engines": {
40
+ "node": ">=16.20.0"
41
+ }
42
+ }
package/src/main.ts ADDED
@@ -0,0 +1,5 @@
1
+ export {default as lodash} from 'lodash';
2
+
3
+ export function getMajorVersion(version: string) {
4
+ return Number(version.split('.')[0]!.replace(/\D/, ''));
5
+ }