@os-design/omit-emotion-props 1.0.19 → 1.0.20

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 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU,mBAAmB;IAC3B,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9C;AAED,QAAA,MAAM,gBAAgB,aAAc,MAAM,EAAE,KAAG,mBAE7C,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  const omitEmotionProps = (...props) => ({
2
2
  shouldForwardProp: p => !props.includes(p)
3
3
  });
4
- export default omitEmotionProps;
5
- //# sourceMappingURL=index.js.map
4
+ export default omitEmotionProps;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@os-design/omit-emotion-props",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "license": "UNLICENSED",
5
5
  "repository": "git@gitlab.com:os-team/libs/os-design.git",
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/esm/index.js",
8
- "types": "dist/types/index.d.ts",
9
- "react-native": "src/index.ts",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "react-native": "./src/index.ts",
10
10
  "files": [
11
11
  "dist",
12
12
  "src",
@@ -21,9 +21,8 @@
21
21
  "sideEffects": false,
22
22
  "scripts": {
23
23
  "clean": "rimraf dist",
24
- "build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/esm --source-maps",
25
- "build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/cjs --source-maps",
26
- "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
24
+ "build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist",
25
+ "build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
27
26
  "build": "yarn clean && npm-run-all 'build:*'",
28
27
  "ncu": "ncu -u"
29
28
  },
@@ -33,5 +32,5 @@
33
32
  "devDependencies": {
34
33
  "react": ">=18"
35
34
  },
36
- "gitHead": "1f17189e344a56fd6347dd6b896d6e7ef6e7b35d"
35
+ "gitHead": "86a83e87297a07afe132782ca2c95023b7139276"
37
36
  }
package/dist/cjs/index.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var omitEmotionProps = function omitEmotionProps() {
8
- for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
9
- props[_key] = arguments[_key];
10
- }
11
- return {
12
- shouldForwardProp: function shouldForwardProp(p) {
13
- return !props.includes(p);
14
- }
15
- };
16
- };
17
- var _default = exports["default"] = omitEmotionProps;
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["omitEmotionProps","_len","arguments","length","props","Array","_key","shouldForwardProp","p","includes","_default","exports"],"sources":["../../src/index.ts"],"sourcesContent":["interface OmitEmotionPropsRes {\n shouldForwardProp: (prop: string) => boolean;\n}\n\nconst omitEmotionProps = (...props: string[]): OmitEmotionPropsRes => ({\n shouldForwardProp: (p) => !props.includes(p),\n});\n\nexport default omitEmotionProps;\n"],"mappings":";;;;;;AAIA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,KAAK,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAALF,KAAK,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;EAAA;EAAA,OAAqC;IACrEC,iBAAiB,EAAE,SAAAA,kBAACC,CAAC;MAAA,OAAK,CAACJ,KAAK,CAACK,QAAQ,CAACD,CAAC,CAAC;IAAA;EAC9C,CAAC;AAAA,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEYX,gBAAgB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["omitEmotionProps","props","shouldForwardProp","p","includes"],"sources":["../../src/index.ts"],"sourcesContent":["interface OmitEmotionPropsRes {\n shouldForwardProp: (prop: string) => boolean;\n}\n\nconst omitEmotionProps = (...props: string[]): OmitEmotionPropsRes => ({\n shouldForwardProp: (p) => !props.includes(p),\n});\n\nexport default omitEmotionProps;\n"],"mappings":"AAIA,MAAMA,gBAAgB,GAAGA,CAAC,GAAGC,KAAe,MAA2B;EACrEC,iBAAiB,EAAGC,CAAC,IAAK,CAACF,KAAK,CAACG,QAAQ,CAACD,CAAC;AAC7C,CAAC,CAAC;AAEF,eAAeH,gBAAgB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU,mBAAmB;IAC3B,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9C;AAED,QAAA,MAAM,gBAAgB,aAAc,MAAM,EAAE,KAAG,mBAE7C,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
File without changes