@nr1e/commons 0.0.3-alpha.14 → 0.0.3-alpha.16

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.
Files changed (42) hide show
  1. package/package.json +8 -11
  2. package/LICENSE +0 -26
  3. package/README.md +0 -14
  4. package/dist/index.d.ts +0 -5
  5. package/dist/index.js +0 -6
  6. package/dist/index.js.map +0 -1
  7. /package/{dist/bitsnbytes → bitsnbytes}/b64.d.ts +0 -0
  8. /package/{dist/bitsnbytes → bitsnbytes}/b64.js +0 -0
  9. /package/{dist/bitsnbytes → bitsnbytes}/b64.js.map +0 -0
  10. /package/{dist/bitsnbytes → bitsnbytes}/index.d.ts +0 -0
  11. /package/{dist/bitsnbytes → bitsnbytes}/index.js +0 -0
  12. /package/{dist/bitsnbytes → bitsnbytes}/index.js.map +0 -0
  13. /package/{dist/errors → errors}/errors.d.ts +0 -0
  14. /package/{dist/errors → errors}/errors.js +0 -0
  15. /package/{dist/errors → errors}/errors.js.map +0 -0
  16. /package/{dist/errors → errors}/index.d.ts +0 -0
  17. /package/{dist/errors → errors}/index.js +0 -0
  18. /package/{dist/errors → errors}/index.js.map +0 -0
  19. /package/{dist/http → http}/http-method.d.ts +0 -0
  20. /package/{dist/http → http}/http-method.js +0 -0
  21. /package/{dist/http → http}/http-method.js.map +0 -0
  22. /package/{dist/http → http}/http-status-code.d.ts +0 -0
  23. /package/{dist/http → http}/http-status-code.js +0 -0
  24. /package/{dist/http → http}/http-status-code.js.map +0 -0
  25. /package/{dist/http → http}/index.d.ts +0 -0
  26. /package/{dist/http → http}/index.js +0 -0
  27. /package/{dist/http → http}/index.js.map +0 -0
  28. /package/{dist/lang → lang}/index.d.ts +0 -0
  29. /package/{dist/lang → lang}/index.js +0 -0
  30. /package/{dist/lang → lang}/index.js.map +0 -0
  31. /package/{dist/lang → lang}/sleep.d.ts +0 -0
  32. /package/{dist/lang → lang}/sleep.js +0 -0
  33. /package/{dist/lang → lang}/sleep.js.map +0 -0
  34. /package/{dist/lang → lang}/type-functions.d.ts +0 -0
  35. /package/{dist/lang → lang}/type-functions.js +0 -0
  36. /package/{dist/lang → lang}/type-functions.js.map +0 -0
  37. /package/{dist/validator → validator}/index.d.ts +0 -0
  38. /package/{dist/validator → validator}/index.js +0 -0
  39. /package/{dist/validator → validator}/index.js.map +0 -0
  40. /package/{dist/validator → validator}/validators.d.ts +0 -0
  41. /package/{dist/validator → validator}/validators.js +0 -0
  42. /package/{dist/validator → validator}/validators.js.map +0 -0
package/package.json CHANGED
@@ -1,10 +1,8 @@
1
1
  {
2
2
  "name": "@nr1e/commons",
3
3
  "description": "Provides common patterns for validation",
4
- "version": "0.0.3-alpha.14",
4
+ "version": "0.0.3-alpha.16",
5
5
  "type": "module",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
6
  "author": "NR1E, Inc.",
9
7
  "publishConfig": {
10
8
  "access": "public"
@@ -19,8 +17,7 @@
19
17
  },
20
18
  "homepage": "https://github.com/nr1etech/commons-js#readme",
21
19
  "files": [
22
- "dist/",
23
- "!dist/**/*.test.*"
20
+ "**"
24
21
  ],
25
22
  "devDependencies": {
26
23
  "@types/node": "20.8.2",
@@ -32,25 +29,25 @@
32
29
  },
33
30
  "exports": {
34
31
  "./bitsnbytes": {
35
- "import": "./dist/bitsnbytes/index.js"
32
+ "import": "./bitsnbytes/index.js"
36
33
  },
37
34
  "./errors": {
38
- "import": "./dist/errors/index.js"
35
+ "import": "./errors/index.js"
39
36
  },
40
37
  "./http": {
41
- "import": "./dist/http/index.js"
38
+ "import": "./http/index.js"
42
39
  },
43
40
  "./lang": {
44
- "import": "./dist/lang/index.js"
41
+ "import": "./lang/index.js"
45
42
  },
46
43
  "./package.json": "./package.json",
47
44
  "./validator": {
48
- "import": "./dist/validator/index.js"
45
+ "import": "./validator/index.js"
49
46
  }
50
47
  },
51
48
  "scripts": {
52
49
  "build": "tsc",
53
- "postbuild": "prettier --check . && gts lint",
50
+ "postbuild": "prettier --check . && gts lint && cp package.json dist",
54
51
  "watch": "tsc -w",
55
52
  "test": "vitest run",
56
53
  "lint": "gts lint",
package/LICENSE DELETED
@@ -1,26 +0,0 @@
1
- Copyright 2023-2024 NR1E, Inc.
2
-
3
- Redistribution and use in source and binary forms, with or without
4
- modification, are permitted provided that the following conditions are met:
5
-
6
- 1. Redistributions of source code must retain the above copyright notice, this
7
- list of conditions and the following disclaimer.
8
-
9
- 2. Redistributions in binary form must reproduce the above copyright notice,
10
- this list of conditions and the following disclaimer in the documentation
11
- and/or other materials provided with the distribution.
12
-
13
- 3. Neither the name of the copyright holder nor the names of its contributors
14
- may be used to endorse or promote products derived from this software without
15
- specific prior written permission.
16
-
17
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md DELETED
@@ -1,14 +0,0 @@
1
- # Commons JS
2
-
3
- [![NPM Version][npm-image]][npm-url]
4
- [![TypeScript Style Guide][gts-image]][gts-url]
5
- [![GitHub Actions][github-image]][github-url]
6
-
7
- This project provides reusable components commonly needed in typescript projects.
8
-
9
- [github-url]: https://github.com/nr1etech/commons-js/actions
10
- [github-image]: https://github.com/nr1etech/commons-js/workflows/ci/badge.svg
11
- [npm-url]: https://npmjs.org/package/@nr1e/commons-js
12
- [npm-image]: https://img.shields.io/npm/v/@nre1/commons-js.svg
13
- [gts-image]: https://img.shields.io/badge/code%20style-google-blueviolet.svg
14
- [gts-url]: https://github.com/google/gts
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from './bitsnbytes';
2
- export * from './errors';
3
- export * from './http';
4
- export * from './lang';
5
- export * from './validator';
package/dist/index.js DELETED
@@ -1,6 +0,0 @@
1
- export * from './bitsnbytes';
2
- export * from './errors';
3
- export * from './http';
4
- export * from './lang';
5
- export * from './validator';
6
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes