@cloudcare/lezer-dql 0.0.2 → 0.0.5

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 CHANGED
@@ -89,20 +89,6 @@ const SOffset$1 = 1,
89
89
  And$1 = 83,
90
90
  Or$1 = 84;
91
91
 
92
- // Copyright 2021 The Prometheus Authors
93
- // Licensed under the Apache License, Version 2.0 (the "License");
94
- // you may not use this file except in compliance with the License.
95
- // You may obtain a copy of the License at
96
- //
97
- // http://www.apache.org/licenses/LICENSE-2.0
98
- //
99
- // Unless required by applicable law or agreed to in writing, software
100
- // distributed under the License is distributed on an "AS IS" BASIS,
101
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102
- // See the License for the specific language governing permissions and
103
- // limitations under the License.
104
-
105
-
106
92
  function camelToSnake(str) {
107
93
  return str
108
94
  .replace(/([A-Z])/g, '_$1')
@@ -226,19 +212,6 @@ const funcIndentifier = (value) => {
226
212
  return funcTokens[value.toLowerCase()] || -1
227
213
  };
228
214
 
229
- // Copyright 2022 The Prometheus Authors
230
- // Licensed under the Apache License, Version 2.0 (the "License");
231
- // you may not use this file except in compliance with the License.
232
- // You may obtain a copy of the License at
233
- //
234
- // http://www.apache.org/licenses/LICENSE-2.0
235
- //
236
- // Unless required by applicable law or agreed to in writing, software
237
- // distributed under the License is distributed on an "AS IS" BASIS,
238
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
239
- // See the License for the specific language governing permissions and
240
- // limitations under the License.
241
-
242
215
  const DQLHighLight = highlight.styleTags({
243
216
  LineComment: highlight.tags.comment,
244
217
  StringLiteral: highlight.tags.string,
package/dist/index.d.ts CHANGED
@@ -1,18 +1,4 @@
1
- // Copyright 2021 The Prometheus Authors
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
1
 
15
- // This file was generated by lezer-promql. You probably should not edit it.
16
2
  import { LRParser } from '@lezer/lr'
17
3
 
18
4
  export const parser: LRParser
package/dist/index.es.js CHANGED
@@ -87,20 +87,6 @@ const SOffset$1 = 1,
87
87
  And$1 = 83,
88
88
  Or$1 = 84;
89
89
 
90
- // Copyright 2021 The Prometheus Authors
91
- // Licensed under the Apache License, Version 2.0 (the "License");
92
- // you may not use this file except in compliance with the License.
93
- // You may obtain a copy of the License at
94
- //
95
- // http://www.apache.org/licenses/LICENSE-2.0
96
- //
97
- // Unless required by applicable law or agreed to in writing, software
98
- // distributed under the License is distributed on an "AS IS" BASIS,
99
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
100
- // See the License for the specific language governing permissions and
101
- // limitations under the License.
102
-
103
-
104
90
  function camelToSnake(str) {
105
91
  return str
106
92
  .replace(/([A-Z])/g, '_$1')
@@ -224,19 +210,6 @@ const funcIndentifier = (value) => {
224
210
  return funcTokens[value.toLowerCase()] || -1
225
211
  };
226
212
 
227
- // Copyright 2022 The Prometheus Authors
228
- // Licensed under the Apache License, Version 2.0 (the "License");
229
- // you may not use this file except in compliance with the License.
230
- // You may obtain a copy of the License at
231
- //
232
- // http://www.apache.org/licenses/LICENSE-2.0
233
- //
234
- // Unless required by applicable law or agreed to in writing, software
235
- // distributed under the License is distributed on an "AS IS" BASIS,
236
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
237
- // See the License for the specific language governing permissions and
238
- // limitations under the License.
239
-
240
213
  const DQLHighLight = styleTags({
241
214
  LineComment: tags.comment,
242
215
  StringLiteral: tags.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcare/lezer-dql",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "description": "lezer-based dql grammar",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",
@@ -33,5 +33,5 @@
33
33
  "@lezer/highlight": "^1.1.2",
34
34
  "@lezer/lr": "^1.2.3"
35
35
  },
36
- "gitHead": "a1c0217095b29383b81c5c24d4be3ba2e0c952c2"
36
+ "gitHead": "6d6e8a011ff91ad6bd4691ae72ced5d8ce3ae202"
37
37
  }