@rnpack/utils 0.1.7 → 0.1.9

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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=jestSetupFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["__mock__/jestSetupFile.js"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ NitroModules: {
5
+ createHybridObject: () => ({
6
+ init: () => {},
7
+ add: () => {},
8
+ createHybridNavigationBar: () => {},
9
+ createHybridStatusBar: () => ({})
10
+ })
11
+ },
12
+ responsive: {
13
+ size: () => Number,
14
+ height: () => Number
15
+ },
16
+ mergeObjects: (obj1, obj2) => ({
17
+ ...obj1,
18
+ ...obj2
19
+ }),
20
+ isNotEmpty: () => Boolean,
21
+ isEmpty: () => Boolean
22
+ };
23
+ //# sourceMappingURL=rnpack-utils-mock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["module","exports","NitroModules","createHybridObject","init","add","createHybridNavigationBar","createHybridStatusBar","responsive","size","Number","height","mergeObjects","obj1","obj2","isNotEmpty","Boolean","isEmpty"],"sourceRoot":"../../../src","sources":["__mock__/rnpack-utils-mock.js"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG;EACfC,YAAY,EAAE;IACZC,kBAAkB,EAAEA,CAAA,MAAO;MACzBC,IAAI,EAAEA,CAAA,KAAM,CAAC,CAAC;MACdC,GAAG,EAAEA,CAAA,KAAM,CAAC,CAAC;MACbC,yBAAyB,EAAEA,CAAA,KAAM,CAAC,CAAC;MACnCC,qBAAqB,EAAEA,CAAA,MAAO,CAAC,CAAC;IAClC,CAAC;EACH,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAEA,CAAA,KAAMC,MAAM;IAClBC,MAAM,EAAEA,CAAA,KAAMD;EAChB,CAAC;EACDE,YAAY,EAAEA,CAACC,IAAI,EAAEC,IAAI,MAAM;IAAE,GAAGD,IAAI;IAAE,GAAGC;EAAK,CAAC,CAAC;EACpDC,UAAU,EAAEA,CAAA,KAAMC,OAAO;EACzBC,OAAO,EAAEA,CAAA,KAAMD;AACjB,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnpack/utils",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Basic utilities will be available and ready to use",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -155,13 +155,6 @@
155
155
  }
156
156
  }
157
157
  },
158
- "jest": {
159
- "preset": "react-native",
160
- "modulePathIgnorePatterns": [
161
- "<rootDir>/example/node_modules",
162
- "<rootDir>/lib/"
163
- ]
164
- },
165
158
  "create-react-native-library": {
166
159
  "languages": "kotlin-swift",
167
160
  "type": "nitro-module",
File without changes
@@ -0,0 +1,17 @@
1
+ module.exports = {
2
+ NitroModules: {
3
+ createHybridObject: () => ({
4
+ init: () => {},
5
+ add: () => {},
6
+ createHybridNavigationBar: () => {},
7
+ createHybridStatusBar: () => ({}),
8
+ }),
9
+ },
10
+ responsive: {
11
+ size: () => Number,
12
+ height: () => Number,
13
+ },
14
+ mergeObjects: (obj1, obj2) => ({ ...obj1, ...obj2 }),
15
+ isNotEmpty: () => Boolean,
16
+ isEmpty: () => Boolean,
17
+ };