@xylabs/function-name 5.0.34 → 5.0.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/function-name",
3
- "version": "5.0.34",
3
+ "version": "5.0.36",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "function",
@@ -40,11 +40,14 @@
40
40
  "types": "./dist/neutral/index.d.ts",
41
41
  "files": [
42
42
  "dist",
43
- "src"
43
+ "src",
44
+ "!**/*.bench.*",
45
+ "!**/*.spec.*",
46
+ "!**/*.test.*"
44
47
  ],
45
48
  "dependencies": {
46
- "@xylabs/error": "~5.0.34",
47
- "@xylabs/typeof": "~5.0.34"
49
+ "@xylabs/error": "~5.0.36",
50
+ "@xylabs/typeof": "~5.0.36"
48
51
  },
49
52
  "devDependencies": {
50
53
  "@xylabs/ts-scripts-yarn3": "~7.2.8",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=functionName.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functionName.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/functionName.spec.ts"],"names":[],"mappings":""}
@@ -1,58 +0,0 @@
1
- import {
2
- describe, expect, test,
3
- } from 'vitest'
4
-
5
- import { functionName } from '../functionName.ts'
6
-
7
- describe('Logger', () => {
8
- test('getFunctionName:function', () => {
9
- const test = () => {
10
- return functionName()
11
- }
12
- const funcName = test()
13
- expect(funcName).toBe('test')
14
- })
15
- test('getFunctionName:constructor', () => {
16
- class Foo {
17
- funcName: string
18
- constructor() {
19
- this.funcName = functionName()
20
- }
21
- }
22
-
23
- const foo = new Foo()
24
- expect(foo.funcName).toBe('new Foo')
25
- })
26
-
27
- test('getFunctionName:method', () => {
28
- class Foo {
29
- funcName: string
30
- constructor() {
31
- this.funcName = this.test()
32
- }
33
-
34
- test() {
35
- return functionName()
36
- }
37
- }
38
-
39
- const foo = new Foo()
40
- expect(foo.funcName).toBe('Foo.test')
41
- })
42
-
43
- test('getFunctionName:static', () => {
44
- class Foo {
45
- funcName: string
46
- constructor() {
47
- this.funcName = Foo.test()
48
- }
49
-
50
- static test() {
51
- return functionName()
52
- }
53
- }
54
-
55
- const foo = new Foo()
56
- expect(foo.funcName).toBe('Function.test')
57
- })
58
- })