pareto 0.51.1 → 0.52.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/package.json CHANGED
@@ -1,50 +1,4 @@
1
1
  {
2
2
  "name": "pareto",
3
- "version": "0.51.1",
4
- "description": "A library that supports the Pareto programming style: 80% of the code is straightforward and only needs 20% (or less) of all language features",
5
- "main": "dist/src/index.js",
6
- "scripts": {
7
- "build": "rm -rf ./dist && tsc",
8
- "lint": "node ./node_modules/eslint/bin/eslint.js src/**/*.ts",
9
- "buildLintAndTest": "npm run build && npm run lint && npm run test",
10
- "validatePublishReadiness": "git diff --exit-code && ncu -u --packageFile package.json && npm install && npm run buildLintAndTest",
11
- "pubMin": "npm run validatePublishReadiness && npm version minor && git push && npm publish",
12
- "pubPatch": "npm run validatePublishReadiness && npm version patch && git push && npm publish",
13
- "test": "echo nothing to test, testing should be done in pareto-20",
14
- "update2latest": "ncu -u --packageFile package.json && nsi",
15
- "update2latestAndPublishMinor": "npm run validatePublishReadiness && npm run update2latest && npm run test && git commit -am \"u2l\" && npm run pubMin",
16
- "update2latestAndPublishPath": "npm run validatePublishReadiness && npm run update2latest && npm run test && git commit -am \"u2l\" && npm run pubPatch"
17
- },
18
- "keywords": [
19
- "80/20 rule",
20
- "functional programming",
21
- "system development"
22
- ],
23
- "author": "corno",
24
- "license": "ISC",
25
- "types": "dist/src/index.d.ts",
26
- "prepublish": "tsc",
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/corno/pareto.git"
30
- },
31
- "files": [
32
- "dist/*"
33
- ],
34
- "dependencies": {
35
- "pareto-20": "^0.25.3"
36
- },
37
- "devDependencies": {
38
- "@types/chai": "^4.2.18",
39
- "@types/mocha": "^8.2.2",
40
- "@types/node": "^15.3.0",
41
- "@typescript-eslint/eslint-plugin": "^4.24.0",
42
- "@typescript-eslint/eslint-plugin-tslint": "^4.24.0",
43
- "@typescript-eslint/parser": "^4.24.0",
44
- "chai": "^4.3.4",
45
- "eslint": "^7.26.0",
46
- "mocha": "^8.4.0",
47
- "tslint": "^6.1.3",
48
- "typescript": "^4.2.4"
49
- }
3
+ "version": "0.52.0"
50
4
  }
package/README.md DELETED
@@ -1,30 +0,0 @@
1
- # pareto
2
-
3
- A package that supports the Pareto programming style: 80% of all code written is straightforward and only needs 20% (or less) of all language features of a typical programming language, in this case TypeScript.
4
-
5
- ## basic concepts
6
-
7
- ### Value
8
- similar to the built in 'Promise'
9
-
10
- ### UnsafeValue
11
-
12
- ### Dictionary
13
-
14
- #### ReadonlyDictionary
15
-
16
- #### SafeMutableDictionary
17
-
18
- #### UnsafeMutableDictionary
19
-
20
- ### Stream
21
-
22
- #### IStream
23
-
24
- #### IKeyValueStream
25
-
26
- ### Lookup
27
-
28
- ### Array
29
-
30
- ### Resource's
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=UnsafePromise.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnsafePromise.js","sourceRoot":"","sources":["../../examples/UnsafePromise.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "pareto-api";
2
- export { assertNotNull, onNullableValue, assertTrue, onBoolean, value, success, error, wrap, buildStream, FilterResult, IKeyValueStream, IStream, IUnsafeStreamConsumer, IStreamConsumer, IValue, IUnsafeValue, ILookup, ReadOnlyDictionary, SafeMutableDictionary, UnsafeMutableDictionary, IArray, IUnsafeOnOpenResource, IUnsafeResource, IUnsafeOpenedResource, ISafeOpenedResource } from "pareto-20";
package/dist/src/index.js DELETED
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.UnsafeMutableDictionary = exports.SafeMutableDictionary = exports.ReadOnlyDictionary = exports.buildStream = exports.wrap = exports.error = exports.success = exports.value = exports.onBoolean = exports.assertTrue = exports.onNullableValue = exports.assertNotNull = void 0;
14
- //api interfaces and types
15
- __exportStar(require("pareto-api"), exports);
16
- var pareto_20_1 = require("pareto-20");
17
- Object.defineProperty(exports, "assertNotNull", { enumerable: true, get: function () { return pareto_20_1.assertNotNull; } });
18
- Object.defineProperty(exports, "onNullableValue", { enumerable: true, get: function () { return pareto_20_1.onNullableValue; } });
19
- Object.defineProperty(exports, "assertTrue", { enumerable: true, get: function () { return pareto_20_1.assertTrue; } });
20
- Object.defineProperty(exports, "onBoolean", { enumerable: true, get: function () { return pareto_20_1.onBoolean; } });
21
- Object.defineProperty(exports, "value", { enumerable: true, get: function () { return pareto_20_1.value; } });
22
- Object.defineProperty(exports, "success", { enumerable: true, get: function () { return pareto_20_1.success; } });
23
- Object.defineProperty(exports, "error", { enumerable: true, get: function () { return pareto_20_1.error; } });
24
- Object.defineProperty(exports, "wrap", { enumerable: true, get: function () { return pareto_20_1.wrap; } });
25
- Object.defineProperty(exports, "buildStream", { enumerable: true, get: function () { return pareto_20_1.buildStream; } });
26
- Object.defineProperty(exports, "ReadOnlyDictionary", { enumerable: true, get: function () { return pareto_20_1.ReadOnlyDictionary; } });
27
- Object.defineProperty(exports, "SafeMutableDictionary", { enumerable: true, get: function () { return pareto_20_1.SafeMutableDictionary; } });
28
- Object.defineProperty(exports, "UnsafeMutableDictionary", { enumerable: true, get: function () { return pareto_20_1.UnsafeMutableDictionary; } });
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0BAA0B;AAC1B,6CAA0B;AAE1B,uCAqCkB;AApCd,0GAAA,aAAa,OAAA;AACb,4GAAA,eAAe,OAAA;AAEf,uGAAA,UAAU,OAAA;AACV,sGAAA,SAAS,OAAA;AAET,kGAAA,KAAK,OAAA;AAEL,oGAAA,OAAO,OAAA;AACP,kGAAA,KAAK,OAAA;AAEL,iGAAA,IAAI,OAAA;AAEJ,wGAAA,WAAW,OAAA;AAYX,+GAAA,kBAAkB,OAAA;AAClB,kHAAA,qBAAqB,OAAA;AACrB,oHAAA,uBAAuB,OAAA"}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../test/index.ts"],"names":[],"mappings":""}