@forge/lint 5.12.2-next.0 → 5.13.0-next.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 5.13.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d6892c9]
8
+ - @forge/cli-shared@8.11.0-next.1
9
+
10
+ ## 5.13.0-next.1
11
+
12
+ ### Minor Changes
13
+
14
+ - f881df6: Adding the new Forge Object Store SDK under the @forge/object-store name as @forge/os was deemed confusing. The new SDK will also drop deprecated methods and for now add linter or both libraries until @forge/os can be retired
15
+
3
16
  ## 5.12.2-next.0
4
17
 
5
18
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"os-node-visitor.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/storage-module-linter/visitors/os-node-visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAgB,MAAM,uBAAuB,CAAC;AAE9D,qBAAa,sBAAuB,YAAW,WAAW,CAAC,OAAO,CAAC;IAC1D,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;CAclH"}
1
+ {"version":3,"file":"os-node-visitor.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/storage-module-linter/visitors/os-node-visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAgB,MAAM,uBAAuB,CAAC;AAE9D,qBAAa,sBAAuB,YAAW,WAAW,CAAC,OAAO,CAAC;IAC1D,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;CAsBlH"}
@@ -5,17 +5,21 @@ const typescript_estree_1 = require("@typescript-eslint/typescript-estree");
5
5
  const api_call_interface_1 = require("../api-call-interface");
6
6
  class ObjectStoreNodeVisitor {
7
7
  visit(node, _parent, callback) {
8
- if (node.type === typescript_estree_1.AST_NODE_TYPES.ImportDeclaration && node.source.value === '@forge/os') {
9
- node.specifiers.forEach((specifier) => {
10
- if (specifier.type === 'ImportDefaultSpecifier' && specifier.local.type === 'Identifier') {
11
- if (specifier.loc) {
12
- callback({
13
- type: api_call_interface_1.ApiCallTypes.OS,
14
- ...specifier.loc.start
15
- });
8
+ if (node.type === typescript_estree_1.AST_NODE_TYPES.ImportDeclaration) {
9
+ if (node.type === typescript_estree_1.AST_NODE_TYPES.ImportDeclaration &&
10
+ (node.source.value === '@forge/os' || node.source.value === `@forge/object-store`)) {
11
+ node.specifiers.forEach((specifier) => {
12
+ if ((specifier.type === 'ImportSpecifier' || specifier.type === 'ImportDefaultSpecifier') &&
13
+ specifier.local.type === 'Identifier') {
14
+ if (specifier.loc) {
15
+ callback({
16
+ type: api_call_interface_1.ApiCallTypes.OS,
17
+ ...specifier.loc.start
18
+ });
19
+ }
16
20
  }
17
- }
18
- });
21
+ });
22
+ }
19
23
  }
20
24
  }
21
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sql-node-visitor.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/storage-module-linter/visitors/sql-node-visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAgB,MAAM,uBAAuB,CAAC;AAE9D,qBAAa,cAAe,YAAW,WAAW,CAAC,OAAO,CAAC;IAClD,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;CAclH"}
1
+ {"version":3,"file":"sql-node-visitor.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/storage-module-linter/visitors/sql-node-visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAgB,MAAM,uBAAuB,CAAC;AAE9D,qBAAa,cAAe,YAAW,WAAW,CAAC,OAAO,CAAC;IAClD,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;CAiBlH"}
@@ -7,7 +7,8 @@ class SQLNodeVisitor {
7
7
  visit(node, _parent, callback) {
8
8
  if (node.type === typescript_estree_1.AST_NODE_TYPES.ImportDeclaration && node.source.value === '@forge/sql') {
9
9
  node.specifiers.forEach((specifier) => {
10
- if (specifier.type === 'ImportDefaultSpecifier' && specifier.local.type === 'Identifier') {
10
+ if ((specifier.type === 'ImportSpecifier' || specifier.type === 'ImportDefaultSpecifier') &&
11
+ specifier.local.type === 'Identifier') {
11
12
  if (specifier.loc) {
12
13
  callback({
13
14
  type: api_call_interface_1.ApiCallTypes.SQL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "5.12.2-next.0",
3
+ "version": "5.13.0-next.2",
4
4
  "description": "Linting for forge apps",
5
5
  "main": "out/index.js",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -19,7 +19,7 @@
19
19
  "eslint-plugin-import": "^2.29.1"
20
20
  },
21
21
  "dependencies": {
22
- "@forge/cli-shared": "8.11.0-next.0",
22
+ "@forge/cli-shared": "8.11.0-next.1",
23
23
  "@forge/csp": "5.4.0",
24
24
  "@forge/egress": "2.3.0-next.0",
25
25
  "@forge/manifest": "11.1.0",