@rotomeca/rop 0.0.3 → 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/dist/cjs/index.js +29 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/package.json +7 -6
- /package/dist/cjs/{classes → src/classes}/Fail.js +0 -0
- /package/dist/cjs/{classes → src/classes}/Success.js +0 -0
- /package/dist/cjs/{classes → src/classes}/abstracts/ATresult.js +0 -0
- /package/dist/cjs/{decorators → src/decorators}/ErrorPath.internal/functions.js +0 -0
- /package/dist/cjs/{decorators → src/decorators}/ErrorPath.js +0 -0
- /package/dist/cjs/{decorators → src/decorators}/HappyPath.internal/functions.js +0 -0
- /package/dist/cjs/{decorators → src/decorators}/HappyPath.js +0 -0
- /package/dist/cjs/{decorators → src/decorators}/Risky.internal/functions.js +0 -0
- /package/dist/cjs/{decorators → src/decorators}/Risky.js +0 -0
- /package/dist/cjs/{functions → src/functions}/applyMatch.js +0 -0
- /package/dist/cjs/{interfaces → src/interfaces}/ITResult.js +0 -0
- /package/dist/cjs/{types → src/types}/ResultMatch.js +0 -0
- /package/dist/cjs/{types → src/types}/resultsCallbacks.js +0 -0
- /package/dist/esm/{classes → src/classes}/Fail.d.ts +0 -0
- /package/dist/esm/{classes → src/classes}/Fail.js +0 -0
- /package/dist/esm/{classes → src/classes}/Success.d.ts +0 -0
- /package/dist/esm/{classes → src/classes}/Success.js +0 -0
- /package/dist/esm/{classes → src/classes}/abstracts/ATresult.d.ts +0 -0
- /package/dist/esm/{classes → src/classes}/abstracts/ATresult.js +0 -0
- /package/dist/esm/{decorators → src/decorators}/ErrorPath.d.ts +0 -0
- /package/dist/esm/{decorators → src/decorators}/ErrorPath.internal/functions.d.ts +0 -0
- /package/dist/esm/{decorators → src/decorators}/ErrorPath.internal/functions.js +0 -0
- /package/dist/esm/{decorators → src/decorators}/ErrorPath.js +0 -0
- /package/dist/esm/{decorators → src/decorators}/HappyPath.d.ts +0 -0
- /package/dist/esm/{decorators → src/decorators}/HappyPath.internal/functions.d.ts +0 -0
- /package/dist/esm/{decorators → src/decorators}/HappyPath.internal/functions.js +0 -0
- /package/dist/esm/{decorators → src/decorators}/HappyPath.js +0 -0
- /package/dist/esm/{decorators → src/decorators}/Risky.d.ts +0 -0
- /package/dist/esm/{decorators → src/decorators}/Risky.internal/functions.d.ts +0 -0
- /package/dist/esm/{decorators → src/decorators}/Risky.internal/functions.js +0 -0
- /package/dist/esm/{decorators → src/decorators}/Risky.js +0 -0
- /package/dist/esm/{functions → src/functions}/applyMatch.d.ts +0 -0
- /package/dist/esm/{functions → src/functions}/applyMatch.js +0 -0
- /package/dist/esm/{interfaces → src/interfaces}/ITResult.d.ts +0 -0
- /package/dist/esm/{interfaces → src/interfaces}/ITResult.js +0 -0
- /package/dist/esm/{types → src/types}/ResultMatch.d.ts +0 -0
- /package/dist/esm/{types → src/types}/ResultMatch.js +0 -0
- /package/dist/esm/{types → src/types}/resultsCallbacks.d.ts +0 -0
- /package/dist/esm/{types → src/types}/resultsCallbacks.js +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Result = void 0;
|
|
18
|
+
// Décorateurs (API Publique principale)
|
|
19
|
+
__exportStar(require("./src/decorators/Risky"), exports);
|
|
20
|
+
__exportStar(require("./src/decorators/HappyPath"), exports);
|
|
21
|
+
__exportStar(require("./src/decorators/ErrorPath"), exports);
|
|
22
|
+
// Classes & Abstractions (Pour le typage et création manuelle)
|
|
23
|
+
__exportStar(require("./src/classes/Fail"), exports);
|
|
24
|
+
__exportStar(require("./src/classes/Success"), exports);
|
|
25
|
+
var ATresult_1 = require("./src/classes/abstracts/ATresult");
|
|
26
|
+
Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return ATresult_1.ATresult; } });
|
|
27
|
+
// Types (Pour l'IntelliSense)
|
|
28
|
+
__exportStar(require("./src/types/resultsCallbacks"), exports);
|
|
29
|
+
__exportStar(require("./src/types/ResultMatch"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './src/decorators/Risky';
|
|
2
|
+
export * from './src/decorators/HappyPath';
|
|
3
|
+
export * from './src/decorators/ErrorPath';
|
|
4
|
+
export * from './src/classes/Fail';
|
|
5
|
+
export * from './src/classes/Success';
|
|
6
|
+
export { ATresult as Result } from './src/classes/abstracts/ATresult';
|
|
7
|
+
export * from './src/types/resultsCallbacks';
|
|
8
|
+
export * from './src/types/ResultMatch';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Décorateurs (API Publique principale)
|
|
2
|
+
export * from './src/decorators/Risky';
|
|
3
|
+
export * from './src/decorators/HappyPath';
|
|
4
|
+
export * from './src/decorators/ErrorPath';
|
|
5
|
+
// Classes & Abstractions (Pour le typage et création manuelle)
|
|
6
|
+
export * from './src/classes/Fail';
|
|
7
|
+
export * from './src/classes/Success';
|
|
8
|
+
export { ATresult as Result } from './src/classes/abstracts/ATresult';
|
|
9
|
+
// Types (Pour l'IntelliSense)
|
|
10
|
+
export * from './src/types/resultsCallbacks';
|
|
11
|
+
export * from './src/types/ResultMatch';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rotomeca/rop",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
"dist",
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
19
|
+
"scripts": {
|
|
20
|
+
"prebuild": "rm -rf dist",
|
|
21
|
+
"build": "npm run build:esm && npm run build:cjs",
|
|
22
|
+
"build:esm": "tsc -p tsconfig.json",
|
|
23
|
+
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json"
|
|
24
|
+
},
|
|
24
25
|
"author": "Rotomeca",
|
|
25
26
|
"license": "ISC",
|
|
26
27
|
"description": "A robust, lightweight, and type-safe implementation of Railway Oriented Programming (ROP) for TypeScript.",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|