@restura/core 0.1.0-alpha.1

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.
@@ -0,0 +1,3 @@
1
+ declare function isEven(value: number): boolean;
2
+
3
+ export { isEven };
@@ -0,0 +1,3 @@
1
+ declare function isEven(value: number): boolean;
2
+
3
+ export { isEven };
package/dist/index.js 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.js.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.mjs ADDED
@@ -0,0 +1,10 @@
1
+ // src/index.ts
2
+ import { log } from "@restura/internal";
3
+ function isEven(value) {
4
+ log("isEven called");
5
+ return value % 2 === 0;
6
+ }
7
+ export {
8
+ isEven
9
+ };
10
+ //# sourceMappingURL=index.mjs.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,SAAS,WAAW;AAEb,SAAS,OAAO,OAAwB;AAC9C,MAAI,eAAe;AACnB,SAAO,QAAQ,MAAM;AACtB;","names":[]}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@restura/core",
3
+ "version": "0.1.0-alpha.1",
4
+ "description": "Restura core utilities for No Code APIs",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "repository": "https://github.com/redsky-engineering/restura",
9
+ "author": "Joshua Hintze",
10
+ "license": "MIT",
11
+ "keywords": [
12
+ "restura",
13
+ "restura core",
14
+ "low code api",
15
+ "sql generator"
16
+ ],
17
+ "dependencies": {
18
+ "@restura/internal": "0.1.0-alpha.1"
19
+ },
20
+ "devDependencies": {
21
+ "tsup": "^8.3.0"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "test": "echo \"Error: no test specified\" && exit 1",
28
+ "build": "tsup ./src/index.ts"
29
+ }
30
+ }
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { log } from '@restura/internal';
2
+
3
+ export function isEven(value: number): boolean {
4
+ log('isEven called');
5
+ return value % 2 === 0;
6
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "module": "ESNext",
5
+ "target": "es2017",
6
+ "allowSyntheticDefaultImports": true
7
+ },
8
+ "include": ["."],
9
+ "exclude": ["dist", "build", "node_modules"]
10
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'tsup';
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ dts: true,
6
+ sourcemap: true,
7
+ format: ['cjs', 'esm']
8
+ });