@traqula/rules-sparql-1-1-adjust 0.0.22 → 0.0.24

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.
@@ -1,39 +1,14 @@
1
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 });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.builtInPatch = exports.builtInAdjust = void 0;
4
+ const rules_sparql_1_1_1 = require("@traqula/rules-sparql-1-1");
5
+ const lexer_js_1 = require("./lexer.js");
6
+ exports.builtInAdjust = (0, rules_sparql_1_1_1.funcExpr2)(lexer_js_1.BuiltInAdjust);
7
+ exports.builtInPatch = {
8
+ name: rules_sparql_1_1_1.gram.builtInCall.name,
9
+ impl: $ => C => $.OR2([
10
+ { ALT: () => $.SUBRULE(exports.builtInAdjust) },
11
+ { ALT: () => rules_sparql_1_1_1.gram.builtInCall.impl($)(C) },
12
+ ]),
9
13
  };
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
- var grammar_exports = {};
20
- __export(grammar_exports, {
21
- builtInAdjust: () => builtInAdjust,
22
- builtInPatch: () => builtInPatch
23
- });
24
- module.exports = __toCommonJS(grammar_exports);
25
- var import_rules_sparql_1_1 = require("@traqula/rules-sparql-1-1");
26
- var import_lexer = require("./lexer.js");
27
- const builtInAdjust = (0, import_rules_sparql_1_1.funcExpr2)(import_lexer.BuiltInAdjust);
28
- const builtInPatch = {
29
- name: import_rules_sparql_1_1.gram.builtInCall.name,
30
- impl: ($) => (C) => $.OR2([
31
- { ALT: () => $.SUBRULE(builtInAdjust) },
32
- { ALT: () => import_rules_sparql_1_1.gram.builtInCall.impl($)(C) }
33
- ])
34
- };
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- builtInAdjust,
38
- builtInPatch
39
- });
14
+ //# sourceMappingURL=grammar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammar.js","sourceRoot":"","sources":["../../../lib/grammar.ts"],"names":[],"mappings":";;;AACA,gEAAmE;AACnE,yCAA2C;AAE9B,QAAA,aAAa,GAAG,IAAA,4BAAS,EAAC,wBAAa,CAAC,CAAC;AAEzC,QAAA,YAAY,GAA2B;IAClD,IAAI,EAAE,uBAAG,CAAC,WAAW,CAAC,IAAI;IAC1B,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAa;QAChC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAa,CAAC,EAAE;QACvC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KAC1C,CAAC;CACH,CAAC","sourcesContent":["import type { Expression } from '@traqula/rules-sparql-1-1';\nimport { funcExpr2, gram as g11 } from '@traqula/rules-sparql-1-1';\nimport { BuiltInAdjust } from './lexer.js';\n\nexport const builtInAdjust = funcExpr2(BuiltInAdjust);\n\nexport const builtInPatch: typeof g11.builtInCall = {\n name: g11.builtInCall.name,\n impl: $ => C => $.OR2<Expression>([\n { ALT: () => $.SUBRULE(builtInAdjust) },\n { ALT: () => g11.builtInCall.impl($)(C) },\n ]),\n};\n"]}
@@ -1,41 +1,39 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var index_exports = {};
30
- __export(index_exports, {
31
- gram: () => gram,
32
- lex: () => lex
33
- });
34
- module.exports = __toCommonJS(index_exports);
35
- var gram = __toESM(require("./grammar.js"), 1);
36
- var lex = __toESM(require("./lexer.js"), 1);
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- gram,
40
- lex
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
41
17
  });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.lex = exports.gram = void 0;
37
+ exports.gram = __importStar(require("./grammar.js"));
38
+ exports.lex = __importStar(require("./lexer.js"));
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,kDAAkC","sourcesContent":["export * as gram from './grammar.js';\nexport * as lex from './lexer.js';\n"]}
@@ -1,29 +1,6 @@
1
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
- var lexer_exports = {};
20
- __export(lexer_exports, {
21
- BuiltInAdjust: () => BuiltInAdjust
22
- });
23
- module.exports = __toCommonJS(lexer_exports);
24
- var import_core = require("@traqula/core");
25
- const BuiltInAdjust = (0, import_core.createToken)({ name: "BuiltInAdjust", pattern: "ADJUST" });
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {
28
- BuiltInAdjust
29
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuiltInAdjust = void 0;
4
+ const core_1 = require("@traqula/core");
5
+ exports.BuiltInAdjust = (0, core_1.createToken)({ name: 'BuiltInAdjust', pattern: 'ADJUST' });
6
+ //# sourceMappingURL=lexer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lexer.js","sourceRoot":"","sources":["../../../lib/lexer.ts"],"names":[],"mappings":";;;AAAA,wCAA4C;AAE/B,QAAA,aAAa,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC","sourcesContent":["import { createToken } from '@traqula/core';\n\nexport const BuiltInAdjust = createToken({ name: 'BuiltInAdjust', pattern: 'ADJUST' });\n"]}
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@traqula/rules-sparql-1-1-adjust",
3
3
  "type": "module",
4
- "version": "0.0.22",
4
+ "version": "0.0.24",
5
5
  "description": "Traqula Lexer and Grammar Rules for sparql 1.1-ADJUST",
6
6
  "lsd:module": true,
7
7
  "license": "MIT",
@@ -27,21 +27,22 @@
27
27
  },
28
28
  "main": "dist/esm/lib/index.js",
29
29
  "files": [
30
- "dist/**/*.d.ts",
31
- "dist/**/*.js",
32
- "dist/**/*.js.map"
30
+ "dist/*/lib/**/*.d.ts",
31
+ "dist/*/lib/**/*.js",
32
+ "dist/*/lib/**/*.js.map",
33
+ "dist/cjs/package.json"
33
34
  ],
34
35
  "engines": {
35
36
  "node": "^20.19.0 || >=22.12.0"
36
37
  },
37
38
  "scripts": {
38
- "build": "yarn build:ts && yarn build:transpile",
39
+ "build": "yarn build:ts && yarn build:cjs",
39
40
  "build:ts": "node \"../../node_modules/typescript/bin/tsc\" -b",
40
- "build:transpile": "esbuild \"dist/esm/**/*.js\" --outdir=dist/cjs/lib --platform=node --format=cjs"
41
+ "build:cjs": "node \"../../node_modules/typescript/bin/tsc\" -b tsconfig.cjs.json"
41
42
  },
42
43
  "dependencies": {
43
- "@traqula/core": "^0.0.22",
44
- "@traqula/rules-sparql-1-1": "^0.0.22"
44
+ "@traqula/core": "^0.0.24",
45
+ "@traqula/rules-sparql-1-1": "^0.0.24"
45
46
  },
46
- "gitHead": "e0cf04a50b3558229ebcc5992cf9562b14f9a077"
47
+ "gitHead": "9865fe1fe302819d46e19c6f3250ceef778f434f"
47
48
  }