@restura/core 0.1.0-alpha.1 → 0.1.0-alpha.3
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/index.cjs +35 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.js +4 -29
- package/dist/index.js.map +1 -1
- package/package.json +11 -4
- package/src/index.ts +0 -6
- package/tsconfig.json +0 -10
- package/tsup.config.ts +0 -8
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
isEven: () => isEven
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(src_exports);
|
|
26
|
+
var import_internal = require("@restura/internal");
|
|
27
|
+
function isEven(value) {
|
|
28
|
+
(0, import_internal.log)("isEven called");
|
|
29
|
+
return value % 2 === 0;
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
isEven
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { log } from '@restura/internal';\n\nexport function isEven(value: number): boolean {\n\tlog('isEven called');\n\treturn value % 2 === 0;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAoB;AAEb,SAAS,OAAO,OAAwB;AAC9C,2BAAI,eAAe;AACnB,SAAO,QAAQ,MAAM;AACtB;","names":[]}
|
package/dist/index.d.cts
ADDED
package/dist/index.js
CHANGED
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
1
|
// src/index.ts
|
|
21
|
-
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
isEven: () => isEven
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(src_exports);
|
|
26
|
-
var import_internal = require("@restura/internal");
|
|
2
|
+
import { log } from "@restura/internal";
|
|
27
3
|
function isEven(value) {
|
|
28
|
-
|
|
4
|
+
log("isEven called");
|
|
29
5
|
return value % 2 === 0;
|
|
30
6
|
}
|
|
31
|
-
|
|
32
|
-
0 && (module.exports = {
|
|
7
|
+
export {
|
|
33
8
|
isEven
|
|
34
|
-
}
|
|
9
|
+
};
|
|
35
10
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { log } from '@restura/internal';\n\nexport function isEven(value: number): boolean {\n\tlog('isEven called');\n\treturn value % 2 === 0;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { log } from '@restura/internal';\n\nexport function isEven(value: number): boolean {\n\tlog('isEven called');\n\treturn value % 2 === 0;\n}\n"],"mappings":";AAAA,SAAS,WAAW;AAEb,SAAS,OAAO,OAAwB;AAC9C,MAAI,eAAe;AACnB,SAAO,QAAQ,MAAM;AACtB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restura/core",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"description": "Restura core utilities for No Code APIs",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
5
|
"types": "./dist/index.d.ts",
|
|
8
6
|
"repository": "https://github.com/redsky-engineering/restura",
|
|
9
7
|
"author": "Joshua Hintze",
|
|
10
8
|
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"exports": {
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
|
+
},
|
|
11
18
|
"keywords": [
|
|
12
19
|
"restura",
|
|
13
20
|
"restura core",
|
|
@@ -15,7 +22,7 @@
|
|
|
15
22
|
"sql generator"
|
|
16
23
|
],
|
|
17
24
|
"dependencies": {
|
|
18
|
-
"@restura/internal": "0.1.0-alpha.
|
|
25
|
+
"@restura/internal": "0.1.0-alpha.3"
|
|
19
26
|
},
|
|
20
27
|
"devDependencies": {
|
|
21
28
|
"tsup": "^8.3.0"
|
package/src/index.ts
DELETED
package/tsconfig.json
DELETED