@murky-web/typebuddy 0.1.0 → 1.0.0

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.js CHANGED
@@ -1,2 +1,2 @@
1
- import { arrayContainsCommonValue, fastIsArray, getKeys, hasEmptyValues, isArray, isBoolean, isDate, isEmptyArray, isEmptyLike, isEmptyObject, isEmptyString, isError, isFloat, isFunction, isInstanceOf, isInteger, isMaybe, isNull, isNullable, isNumber, isObject, isOptional, isPromise, isRegExp, isString, isSuccess, isSymbol, isUlidString, isUndefined, isUuidString, parseArray, parseDomainName, parseFloat, parseInteger, parseNumber, parseString } from "./type_helper.js";
1
+ import { arrayContainsCommonValue, fastIsArray, getKeys, hasEmptyValues, isArray, isBoolean, isDate, isEmptyArray, isEmptyLike, isEmptyObject, isEmptyString, isError, isFloat, isFunction, isInstanceOf, isInteger, isMaybe, isNull, isNullable, isNumber, isObject, isOptional, isPromise, isRegExp, isString, isSuccess, isSymbol, isUlidString, isUndefined, isUuidString, parseArray, parseDomainName, parseFloat, parseInteger, parseNumber, parseString } from "./src/type_helper.js";
2
2
  export { arrayContainsCommonValue, fastIsArray, getKeys, hasEmptyValues, isArray, isBoolean, isDate, isEmptyArray, isEmptyLike, isEmptyObject, isEmptyString, isError, isFloat, isFunction, isInstanceOf, isInteger, isMaybe, isNull, isNullable, isNumber, isObject, isOptional, isPromise, isRegExp, isString, isSuccess, isSymbol, isUlidString, isUndefined, isUuidString, parseArray, parseDomainName, parseFloat, parseInteger, parseNumber, parseString };
@@ -93,8 +93,7 @@ function isNumber(value) {
93
93
  }
94
94
  function isObject(value) {
95
95
  if (typeof value !== "object" || value === null || isArray(value) || Object.prototype.toString.call(value) !== "[object Object]") return false;
96
- const objectValue = value;
97
- return Object.getPrototypeOf(objectValue) === Object.prototype;
96
+ return Object.getPrototypeOf(value) === Object.prototype;
98
97
  }
99
98
  function isBoolean(value) {
100
99
  return typeof value === "boolean";
package/jsr.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://jsr.io/schema/config-file.v1.json",
3
3
  "name": "@murky-web/typebuddy",
4
- "version": "0.1.0",
4
+ "version": "1.0.0",
5
5
  "license": "ISC",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
package/oxlint/index.ts CHANGED
@@ -5,25 +5,25 @@ import { nullableRule } from "../rules/nullable_rule.js";
5
5
  import { optionalRule } from "../rules/optional_rule.js";
6
6
 
7
7
  const rules = {
8
- "prefer-maybe": maybeRule,
9
- "prefer-maybe-promise": errorSafeAsyncRule,
10
- "prefer-nullable": nullableRule,
11
- "prefer-optional": optionalRule,
12
- "require-try-catch": requireTryCatchAsyncRule,
8
+ "prefer-maybe": maybeRule,
9
+ "prefer-maybe-promise": errorSafeAsyncRule,
10
+ "prefer-nullable": nullableRule,
11
+ "prefer-optional": optionalRule,
12
+ "require-try-catch": requireTryCatchAsyncRule,
13
13
  } as const satisfies Record<string, unknown>;
14
14
 
15
15
  type TypebuddyOxlintPlugin = {
16
- meta: {
17
- name: string;
18
- };
19
- rules: Record<string, unknown>;
16
+ meta: {
17
+ name: string;
18
+ };
19
+ rules: Record<string, unknown>;
20
20
  };
21
21
 
22
22
  const plugin: TypebuddyOxlintPlugin = {
23
- meta: {
24
- name: "typebuddy",
25
- },
26
- rules,
23
+ meta: {
24
+ name: "typebuddy",
25
+ },
26
+ rules,
27
27
  };
28
28
 
29
29
  export default plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@murky-web/typebuddy",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "Your new best friend for simple typescript guards every project needs.",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -36,8 +36,8 @@
36
36
  "clean": "rm -rf dist",
37
37
  "lint": "oxlint -c ./.oxlintrc.jsonc --tsconfig ./tsconfig.lint.json --type-aware src biome tsdown.config.ts vitest.config.ts",
38
38
  "lint:fix": "oxlint -c ./.oxlintrc.jsonc --tsconfig ./tsconfig.lint.json --type-aware --fix src biome tsdown.config.ts vitest.config.ts",
39
- "format": "oxfmt -c ../../node_modules/@murky-web/config/oxc/.oxfmtrc.jsonc src rules biome tests tsdown.config.ts vitest.config.ts",
40
- "format:check": "oxfmt -c ../../node_modules/@murky-web/config/oxc/.oxfmtrc.jsonc --check src rules biome tests tsdown.config.ts vitest.config.ts",
39
+ "format": "oxfmt -c ../config/oxc/.oxfmtrc.jsonc src rules biome tests tsdown.config.ts vitest.config.ts",
40
+ "format:check": "oxfmt -c ../config/oxc/.oxfmtrc.jsonc --check src rules biome tests tsdown.config.ts vitest.config.ts",
41
41
  "smoke:globals": "bun run build && tsgo --project ./smoke/globals/tsconfig.json --noEmit",
42
42
  "smoke:oxlint": "bun run build && bun ./smoke/oxlint/run-smoke.ts",
43
43
  "smoke:oxlint:fix": "bun run build && bun ./smoke/oxlint/run-fix-smoke.ts",
@@ -55,12 +55,21 @@
55
55
  "biome",
56
56
  "rules"
57
57
  ],
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/MurkyTheMurloc/web_dev_tools.git",
61
+ "directory": "packages/typebuddy"
62
+ },
63
+ "homepage": "https://github.com/MurkyTheMurloc/web_dev_tools/tree/main/packages/typebuddy",
64
+ "bugs": {
65
+ "url": "https://github.com/MurkyTheMurloc/web_dev_tools/issues"
66
+ },
58
67
  "license": "ISC",
59
68
  "type": "module",
60
69
  "sideEffects": false,
61
70
  "publishConfig": {
62
71
  "access": "public",
63
- "provenance":false
72
+ "provenance": true
64
73
  },
65
74
  "devDependencies": {
66
75
  "@murky-web/config": "workspace:*"