strictr 0.0.2 → 0.0.4

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.
@@ -28,8 +28,9 @@ const fs = __importStar(require("fs"));
28
28
  const lodash_1 = require("lodash");
29
29
  const missingStrictStatement = (file) => {
30
30
  const content = fs.readFileSync(file, 'utf-8');
31
- const lines = (0, lodash_1.split)(content, '\n');
32
- return !(0, lodash_1.includes)(lines, "'use strict';");
31
+ let lines = (0, lodash_1.split)(content, '\n');
32
+ lines = (0, lodash_1.map)(lines, lodash_1.trim);
33
+ return !(0, lodash_1.find)(lines, (line) => (0, lodash_1.includes)(line, 'use strict'));
33
34
  };
34
35
  exports.default = missingStrictStatement;
35
36
  //# sourceMappingURL=missing.strict.statement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing.strict.statement.js","sourceRoot":"","sources":["../../src/functions/missing.strict.statement.ts"],"names":[],"mappings":";AACA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,uCAAyB;AAEzB,mCAAuC;AAEvC,MAAM,sBAAsB,GAAG,CAAC,IAAY,EAAW,EAAE;IACxD,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,IAAA,cAAK,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACnC,OAAO,CAAC,IAAA,iBAAQ,EAAC,KAAK,EAAE,eAAe,CAAC,CAAC;AAC1C,CAAC,CAAC;AACF,kBAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"missing.strict.statement.js","sourceRoot":"","sources":["../../src/functions/missing.strict.statement.ts"],"names":[],"mappings":";AACA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,uCAAyB;AAEzB,mCAAwD;AAExD,MAAM,sBAAsB,GAAG,CAAC,IAAY,EAAW,EAAE;IACxD,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE/C,IAAI,KAAK,GAAG,IAAA,cAAK,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACjC,KAAK,GAAG,IAAA,YAAG,EAAC,KAAK,EAAE,aAAI,CAAC,CAAC;IAEzB,OAAO,CAAC,IAAA,aAAI,EAAC,KAAK,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,IAAA,iBAAQ,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;AACrE,CAAC,CAAC;AACF,kBAAe,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strictr",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "strict statement checker",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"
@@ -21,8 +21,7 @@
21
21
  "format": "prettier --write \"src/**/*.ts\"",
22
22
  "up": "pnpm up -i",
23
23
  "upgrade": "pnpm up",
24
- "latest": "pnpm up -i -L",
25
- "preinstall": "npx only-allow pnpm"
24
+ "latest": "pnpm up -i -L"
26
25
  },
27
26
  "preferGlobal": true,
28
27
  "bin": {