@wix/site-service-above-the-fold 1.0.2 → 1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAgB5C,QAAA,sBAAsB,GAAG,IAAA,oCAAa,EAC/C,kCAAkC,CACrC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAgB5C,QAAA,sBAAsB,GAAG,IAAA,oCAAa,EAClD,kCAAkC,CAClC,CAAA"}
@@ -5,7 +5,7 @@ const services_definitions_1 = require("@wix/services-definitions");
5
5
  const definition_1 = require("../definition");
6
6
  exports.AboveTheFoldService = (0, services_definitions_1.implementService)(definition_1.AboveTheFoldDefinition, ({ config }) => {
7
7
  return {
8
- isInFirstFold: key => config[key],
8
+ isInFirstFold: (key) => config[key],
9
9
  };
10
10
  });
11
11
  //# sourceMappingURL=aboveTheFoldService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":";;;AAAA,oEAA4D;AAG5D,8CAAsD;AAEzC,QAAA,mBAAmB,GAAG,IAAA,uCAAgB,EAC/C,mCAAsB,EACtB,CAAC,EAAE,MAAM,EAAkD,EAAwB,EAAE;IACjF,OAAO;QACH,aAAa,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;KACpC,CAAA;AACL,CAAC,CACJ,CAAA"}
1
+ {"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":";;;AAAA,oEAA4D;AAG5D,8CAAsD;AAEzC,QAAA,mBAAmB,GAAG,IAAA,uCAAgB,EAClD,mCAAsB,EACtB,CAAC,EAAE,MAAM,EAAkD,EAAwB,EAAE;IACpF,OAAO;QACN,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;KACnC,CAAA;AACF,CAAC,CACD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/service.ts"],"names":[],"mappings":";;;AAAA,6CAAqD;AACrD,+EAA2E;AAE9D,QAAA,UAAU,GAAG,mCAAsB,CAAA;AAChD,kBAAe,yCAAmB,CAAA"}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/service.ts"],"names":[],"mappings":";;;AAAA,6CAAqD;AACrD,+EAA2E;AAE9D,QAAA,UAAU,GAAG,mCAAsB,CAAA;kBACjC,yCAAmB"}
package/cjs/package.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "type": "commonjs"
2
+ "type": "commonjs"
3
3
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "main": "../cjs/build/definition/index.js"
2
+ "main": "../cjs/build/definition/index.js"
3
3
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAgBzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAC/C,kCAAkC,CACrC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAgBzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAClD,kCAAkC,CAClC,CAAA"}
@@ -2,7 +2,7 @@ import { implementService } from '@wix/services-definitions';
2
2
  import { AboveTheFoldDefinition } from '../definition';
3
3
  export const AboveTheFoldService = implementService(AboveTheFoldDefinition, ({ config }) => {
4
4
  return {
5
- isInFirstFold: key => config[key],
5
+ isInFirstFold: (key) => config[key],
6
6
  };
7
7
  });
8
8
  //# sourceMappingURL=aboveTheFoldService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAEtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAC/C,sBAAsB,EACtB,CAAC,EAAE,MAAM,EAAkD,EAAwB,EAAE;IACjF,OAAO;QACH,aAAa,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;KACpC,CAAA;AACL,CAAC,CACJ,CAAA"}
1
+ {"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAEtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAClD,sBAAsB,EACtB,CAAC,EAAE,MAAM,EAAkD,EAAwB,EAAE;IACpF,OAAO;QACN,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;KACnC,CAAA;AACF,CAAC,CACD,CAAA"}
@@ -1,3 +1,3 @@
1
1
  {
2
- "main": "../cjs/build/implementations/index.js"
2
+ "main": "../cjs/build/implementations/index.js"
3
3
  }
package/package.json CHANGED
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-service-above-the-fold",
3
- "version": "1.0.2",
4
- "main": "cjs/build/index.js",
5
- "module": "dist/index.js",
6
- "types": "dist/index.d.ts",
3
+ "version": "1.0.4",
7
4
  "license": "UNLICENSED",
8
5
  "files": [
9
6
  "dist",
@@ -14,6 +11,10 @@
14
11
  "types",
15
12
  "!**/*.tsbuildinfo"
16
13
  ],
14
+ "sideEffects": false,
15
+ "main": "cjs/build/index.js",
16
+ "module": "dist/index.js",
17
+ "types": "dist/index.d.ts",
17
18
  "exports": {
18
19
  ".": {
19
20
  "types": "./dist/index.d.ts",
@@ -41,13 +42,9 @@
41
42
  "require": "./cjs/build/service.js"
42
43
  }
43
44
  },
44
- "dependencies": {
45
- "@wix/services-definitions": "^0.1.4",
46
- "@wix/services-manager": "^0.2.20"
47
- },
48
- "devDependencies": {
49
- "typescript": "^5.3.3",
50
- "vitest": "4.1.0"
45
+ "publishConfig": {
46
+ "registry": "https://registry.npmjs.org/",
47
+ "access": "public"
51
48
  },
52
49
  "scripts": {
53
50
  "build": "tsc -b . --force && tsc --project tsconfig.cjs.json",
@@ -55,12 +52,15 @@
55
52
  "test": "vitest --run && yarn test-type-check",
56
53
  "test-type-check": "echo 'validating typescript in test files' && tsc --project tsconfig.test.json && echo 'Finished validating typescript in test files successfully'"
57
54
  },
58
- "publishUnscoped": false,
59
- "publishConfig": {
60
- "registry": "https://registry.npmjs.org/",
61
- "access": "public"
55
+ "dependencies": {
56
+ "@wix/services-definitions": "^0.1.4",
57
+ "@wix/services-manager": "^0.2.20"
62
58
  },
63
- "sideEffects": false,
59
+ "devDependencies": {
60
+ "typescript": "~7.0.2",
61
+ "vitest": "4.1.11"
62
+ },
63
+ "publishUnscoped": false,
64
64
  "wix": {
65
65
  "artifact": {
66
66
  "groupId": "com.wixpress.npm",
@@ -77,5 +77,5 @@
77
77
  ]
78
78
  }
79
79
  },
80
- "falconPackageHash": "00da8034caed556c00b670fe1126f1a7856355d195916b6e16ddfeeb"
80
+ "falconPackageHash": "16d68c8738248aa574d88b64f961e0ca5aa88bfd850fe90f2b7ad170"
81
81
  }
@@ -5,15 +5,15 @@ export type CompId = string
5
5
  export type CompPath = string
6
6
 
7
7
  export type IAboveTheFoldServiceConfig = {
8
- [key: CompId | CompPath]: boolean
8
+ [key: CompId | CompPath]: boolean
9
9
  }
10
10
 
11
11
  export interface IAboveTheFoldService {
12
- isInFirstFold: (key: CompId | CompPath) => boolean | undefined
12
+ isInFirstFold: (key: CompId | CompPath) => boolean | undefined
13
13
  }
14
14
 
15
15
  export type IAboveTheFoldDefinition = ServiceDefinition<IAboveTheFoldService, IAboveTheFoldServiceConfig>
16
16
 
17
17
  export const AboveTheFoldDefinition = defineService<IAboveTheFoldService, IAboveTheFoldServiceConfig>(
18
- '@wix/site-service-above-the-fold'
18
+ '@wix/site-service-above-the-fold'
19
19
  )
@@ -4,10 +4,10 @@ import type { IAboveTheFoldService, IAboveTheFoldServiceConfig } from '../defini
4
4
  import { AboveTheFoldDefinition } from '../definition'
5
5
 
6
6
  export const AboveTheFoldService = implementService(
7
- AboveTheFoldDefinition,
8
- ({ config }: ServiceFactoryOpts<IAboveTheFoldServiceConfig>): IAboveTheFoldService => {
9
- return {
10
- isInFirstFold: key => config[key],
11
- }
12
- }
7
+ AboveTheFoldDefinition,
8
+ ({ config }: ServiceFactoryOpts<IAboveTheFoldServiceConfig>): IAboveTheFoldService => {
9
+ return {
10
+ isInFirstFold: (key) => config[key],
11
+ }
12
+ }
13
13
  )
@@ -1,7 +1,7 @@
1
1
  export type {
2
- CompId,
3
- CompPath,
4
- IAboveTheFoldService,
5
- IAboveTheFoldServiceConfig,
6
- IAboveTheFoldDefinition,
2
+ CompId,
3
+ CompPath,
4
+ IAboveTheFoldService,
5
+ IAboveTheFoldServiceConfig,
6
+ IAboveTheFoldDefinition,
7
7
  } from '../definition'
@@ -1,3 +1,3 @@
1
1
  {
2
- "main": "../cjs/build/types/index.js"
2
+ "main": "../cjs/build/types/index.js"
3
3
  }