@nmshd/crypto 1.0.0 → 1.0.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/LICENSE CHANGED
@@ -1 +1,7 @@
1
- UNLICENSED
1
+ Copyright 2021 j&s-soft GmbH
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -9,10 +9,16 @@ This project serves as a wrapper around the [sodium library for Node](https://ww
9
9
 
10
10
  The documentation for this project is currently under construction.
11
11
 
12
+ ## Feedback
13
+
14
+ Please file any bugs or feature requests by creating an [issue](https://github.com/nmshd/feedback/issues).
15
+
16
+ Share your feedback with the Enmeshed team by contributing to the [discussions](https://github.com/nmshd/feedback/discussions).
17
+
12
18
  ## Contribute
13
19
 
14
20
  Currently contribution to this project is not possible. This will change soon.
15
21
 
16
22
  ## License
17
23
 
18
- [UNLICENSED](LICENSE)
24
+ [MIT](LICENSE)
@@ -0,0 +1,16 @@
1
+ export declare const buildInformation: {
2
+ version: string;
3
+ build: string;
4
+ date: string;
5
+ commit: string;
6
+ dependencies: string;
7
+ libraries: {
8
+ serval: {
9
+ version: string;
10
+ build: string;
11
+ date: string;
12
+ commit: string;
13
+ dependencies: string;
14
+ };
15
+ };
16
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildInformation = void 0;
4
+ const ts_serval_1 = require("@js-soft/ts-serval");
5
+ exports.buildInformation = {
6
+ version: "1.0.4",
7
+ build: "6",
8
+ date: "2021-10-06T11:21:00+00:00",
9
+ commit: "e8a1bfecba09de56ecb58c2349300d66823c12fc",
10
+ dependencies: {"libsodium-wrappers-sumo":"0.7.9","uuid":"8.3.2"},
11
+ libraries: {
12
+ serval: ts_serval_1.buildInformation
13
+ }
14
+ };
15
+ //# sourceMappingURL=buildInformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildInformation.js","sourceRoot":"","sources":["../src/buildInformation.ts"],"names":[],"mappings":";;;AAAA,kDAAgF;AAEnE,QAAA,gBAAgB,GAAG;IAC5B,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,YAAY,EAAE,kBAAkB;IAChC,SAAS,EAAE;QACP,MAAM,EAAE,4BAAsB;KACjC;CACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./BaseX";
2
+ export * from "./buildInformation";
2
3
  export * from "./CoreBuffer";
3
- export * from "./CryptoBuildInformation";
4
4
  export * from "./CryptoDerivation";
5
5
  export * from "./CryptoError";
6
6
  export * from "./CryptoErrorCode";
package/dist/index.js CHANGED
@@ -11,8 +11,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./BaseX"), exports);
14
+ __exportStar(require("./buildInformation"), exports);
14
15
  __exportStar(require("./CoreBuffer"), exports);
15
- __exportStar(require("./CryptoBuildInformation"), exports);
16
16
  __exportStar(require("./CryptoDerivation"), exports);
17
17
  __exportStar(require("./CryptoError"), exports);
18
18
  __exportStar(require("./CryptoErrorCode"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B;AAC7B,2DAAyC;AACzC,qDAAmC;AACnC,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD;AACjD,sEAAoD;AACpD,qEAAmD;AACnD,mEAAiD;AACjD,sEAAoD;AACpD,oDAAkC;AAClC,mEAAiD;AACjD,wDAAsC;AACtC,iFAA+D;AAC/D,kFAAgE;AAChE,kFAAgE;AAChE,2EAAyD;AACzD,wEAAsD;AACtD,8DAA4C;AAC5C,qEAAmD;AACnD,wEAAsD;AACtD,uEAAqD;AACrD,+DAA6C;AAC7C,wEAAsD;AACtD,kDAAgC;AAChC,6DAA2C;AAC3C,oEAAkD;AAClD,qEAAmD;AACnD,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD;AACjD,sEAAoD;AACpD,qEAAmD;AACnD,mEAAiD;AACjD,sEAAoD;AACpD,oDAAkC;AAClC,mEAAiD;AACjD,wDAAsC;AACtC,iFAA+D;AAC/D,kFAAgE;AAChE,kFAAgE;AAChE,2EAAyD;AACzD,wEAAsD;AACtD,8DAA4C;AAC5C,qEAAmD;AACnD,wEAAsD;AACtD,uEAAqD;AACrD,+DAA6C;AAC7C,wEAAsD;AACtD,kDAAgC;AAChC,6DAA2C;AAC3C,oEAAkD;AAClD,qEAAmD;AACnD,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,6DAA2C"}
@@ -528,39 +528,6 @@ exports.CoreBuffer = CoreBuffer;
528
528
 
529
529
  /***/ }),
530
530
 
531
- /***/ "./dist/CryptoBuildInformation.js":
532
- /*!****************************************!*\
533
- !*** ./dist/CryptoBuildInformation.js ***!
534
- \****************************************/
535
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
536
-
537
- "use strict";
538
-
539
- Object.defineProperty(exports, "__esModule", ({ value: true }));
540
- exports.CryptoBuildInformation = void 0;
541
- const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
542
- class CryptoBuildInformation {
543
- constructor() {
544
- this.version = "1.0.0";
545
- this.build = "";
546
- this.date = "2021-09-27T08:36:54+00:00";
547
- this.commit = "";
548
- this.serval = ts_serval_1.ServalBuildInformation.info;
549
- try {
550
- // eslint-disable-next-line @typescript-eslint/quotes
551
- this.dependencies = JSON.parse(`{"libsodium-wrappers-sumo":"0.7.9","uuid":"8.3.2"}`);
552
- }
553
- catch (e) {
554
- this.dependencies = {};
555
- }
556
- }
557
- }
558
- exports.CryptoBuildInformation = CryptoBuildInformation;
559
- CryptoBuildInformation.info = new CryptoBuildInformation();
560
- //# sourceMappingURL=CryptoBuildInformation.js.map
561
-
562
- /***/ }),
563
-
564
531
  /***/ "./dist/CryptoDerivation.js":
565
532
  /*!**********************************!*\
566
533
  !*** ./dist/CryptoDerivation.js ***!
@@ -1259,6 +1226,31 @@ var base64_variants;
1259
1226
 
1260
1227
  /***/ }),
1261
1228
 
1229
+ /***/ "./dist/buildInformation.js":
1230
+ /*!**********************************!*\
1231
+ !*** ./dist/buildInformation.js ***!
1232
+ \**********************************/
1233
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1234
+
1235
+ "use strict";
1236
+
1237
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1238
+ exports.buildInformation = void 0;
1239
+ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
1240
+ exports.buildInformation = {
1241
+ version: "1.0.4",
1242
+ build: "6",
1243
+ date: "2021-10-06T11:21:00+00:00",
1244
+ commit: "e8a1bfecba09de56ecb58c2349300d66823c12fc",
1245
+ dependencies: {"libsodium-wrappers-sumo":"0.7.9","uuid":"8.3.2"},
1246
+ libraries: {
1247
+ serval: ts_serval_1.buildInformation
1248
+ }
1249
+ };
1250
+ //# sourceMappingURL=buildInformation.js.map
1251
+
1252
+ /***/ }),
1253
+
1262
1254
  /***/ "./dist/encryption/CryptoCipher.js":
1263
1255
  /*!*****************************************!*\
1264
1256
  !*** ./dist/encryption/CryptoCipher.js ***!
@@ -2326,8 +2318,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
2326
2318
  };
2327
2319
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2328
2320
  __exportStar(__webpack_require__(/*! ./BaseX */ "./dist/BaseX.js"), exports);
2321
+ __exportStar(__webpack_require__(/*! ./buildInformation */ "./dist/buildInformation.js"), exports);
2329
2322
  __exportStar(__webpack_require__(/*! ./CoreBuffer */ "./dist/CoreBuffer.js"), exports);
2330
- __exportStar(__webpack_require__(/*! ./CryptoBuildInformation */ "./dist/CryptoBuildInformation.js"), exports);
2331
2323
  __exportStar(__webpack_require__(/*! ./CryptoDerivation */ "./dist/CryptoDerivation.js"), exports);
2332
2324
  __exportStar(__webpack_require__(/*! ./CryptoError */ "./dist/CryptoError.js"), exports);
2333
2325
  __exportStar(__webpack_require__(/*! ./CryptoErrorCode */ "./dist/CryptoErrorCode.js"), exports);