@x-oasis/is 0.1.38 → 0.1.39

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,14 @@
1
+
2
+ > @x-oasis/is@0.1.39 build /home/runner/work/x-oasis/x-oasis/packages/assertion/is
3
+ > tsdx build --tsconfig tsconfig.build.json
4
+
5
+ @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
6
+ @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
+ ⠙ Creating entry file
8
+ ✓ Creating entry file 742 ms
9
+ ⠙ Building modules
10
+ ⠹ Building modules
11
+ [tsdx]: Your rootDir is currently set to "./". Please change your rootDir to "./src".
12
+ TSDX has deprecated setting tsconfig.compilerOptions.rootDir to "./" as it caused buggy output for declarationMaps and more.
13
+ You may also need to change your include to remove "test", which also caused declarations to be unnecessarily created for test files.
14
+ ✓ Building modules 1.2 secs
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @x-oasis/is
2
2
 
3
+ ## 0.1.39
4
+
5
+ ### Patch Changes
6
+
7
+ - 61ecc29: turbo
8
+ - 2129870: is change
9
+ - 0fbc80c: add turbo
10
+
3
11
  ## 0.1.38
4
12
 
5
13
  ### Patch Changes
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var index = (function (x, y) {
6
6
  if (x === y) {
7
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
7
+ return y !== 0 || x !== 0 || 1 / x === 1 / y;
8
8
  }
9
9
  return x !== x && y !== y;
10
10
  });
@@ -1 +1 @@
1
- {"version":3,"file":"is.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nexport default (x: any, y: any) => {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n }\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n};\n"],"names":["x","y"],"mappings":";;;;AAIA,aAAe,UAACA,CAAM,EAAEC,CAAM;EAE5B,IAAID,CAAC,KAAKC,CAAC,EAAE;IAIX,OAAOD,CAAC,KAAK,CAAC,IAAIC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAGD,CAAC,KAAK,CAAC,GAAGC,CAAC;;EAG9C,OAAOD,CAAC,KAAKA,CAAC,IAAIC,CAAC,KAAKA,CAAC;AAC3B,CAAC;;;;"}
1
+ {"version":3,"file":"is.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nexport default (x: any, y: any) => {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return y !== 0 || x !== 0 || 1 / x === 1 / y;\n }\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n};\n"],"names":["x","y"],"mappings":";;;;AAIA,aAAe,UAACA,CAAM,EAAEC,CAAM;EAE5B,IAAID,CAAC,KAAKC,CAAC,EAAE;IAIX,OAAOA,CAAC,KAAK,CAAC,IAAID,CAAC,KAAK,CAAC,IAAI,CAAC,GAAGA,CAAC,KAAK,CAAC,GAAGC,CAAC;;EAG9C,OAAOD,CAAC,KAAKA,CAAC,IAAIC,CAAC,KAAKA,CAAC;AAC3B,CAAC;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){return e===t?0!==t||0!==e||1/e==1/t:e!=e&&t!=t};
2
2
  //# sourceMappingURL=is.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nexport default (x: any, y: any) => {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n }\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n};\n"],"names":["x","y"],"mappings":"6FAIgBA,EAAQC,GAEtB,OAAID,IAAMC,EAIK,IAAND,GAAiB,IAANC,GAAW,EAAID,GAAM,EAAIC,EAGtCD,GAAMA,GAAKC,GAAMA"}
1
+ {"version":3,"file":"is.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nexport default (x: any, y: any) => {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return y !== 0 || x !== 0 || 1 / x === 1 / y;\n }\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n};\n"],"names":["x","y"],"mappings":"6FAIgBA,EAAQC,GAEtB,OAAID,IAAMC,EAIK,IAANA,GAAiB,IAAND,GAAW,EAAIA,GAAM,EAAIC,EAGtCD,GAAMA,GAAKC,GAAMA"}
package/dist/is.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var index = (function (x, y) {
2
2
  if (x === y) {
3
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
3
+ return y !== 0 || x !== 0 || 1 / x === 1 / y;
4
4
  }
5
5
  return x !== x && y !== y;
6
6
  });
@@ -1 +1 @@
1
- {"version":3,"file":"is.esm.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nexport default (x: any, y: any) => {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n }\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n};\n"],"names":["x","y"],"mappings":"AAIA,aAAe,UAACA,CAAM,EAAEC,CAAM;EAE5B,IAAID,CAAC,KAAKC,CAAC,EAAE;IAIX,OAAOD,CAAC,KAAK,CAAC,IAAIC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAGD,CAAC,KAAK,CAAC,GAAGC,CAAC;;EAG9C,OAAOD,CAAC,KAAKA,CAAC,IAAIC,CAAC,KAAKA,CAAC;AAC3B,CAAC;;;;"}
1
+ {"version":3,"file":"is.esm.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nexport default (x: any, y: any) => {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return y !== 0 || x !== 0 || 1 / x === 1 / y;\n }\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n};\n"],"names":["x","y"],"mappings":"AAIA,aAAe,UAACA,CAAM,EAAEC,CAAM;EAE5B,IAAID,CAAC,KAAKC,CAAC,EAAE;IAIX,OAAOA,CAAC,KAAK,CAAC,IAAID,CAAC,KAAK,CAAC,IAAI,CAAC,GAAGA,CAAC,KAAK,CAAC,GAAGC,CAAC;;EAG9C,OAAOD,CAAC,KAAKA,CAAC,IAAIC,CAAC,KAAKA,CAAC;AAC3B,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-oasis/is",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "is function",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -8,7 +8,7 @@ export default (x: any, y: any) => {
8
8
  // Steps 1-5, 7-10
9
9
  // Steps 6.b-6.e: +0 != -0
10
10
  // Added the nonzero y check to make Flow happy, but it is redundant
11
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
11
+ return y !== 0 || x !== 0 || 1 / x === 1 / y;
12
12
  }
13
13
  // Step 6.a: NaN == NaN
14
14
  return x !== x && y !== y;