ob1 0.66.2 → 0.67.0
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
|
-
const { add,
|
|
13
|
+
const { add, add0, add1, get0, get1, inc, neg, sub, sub1 } = require("../ob1");
|
|
14
14
|
|
|
15
15
|
const FORTY_TWO_0 = add0(42);
|
|
16
16
|
const FORTY_TWO_1 = add1(42);
|
|
@@ -56,5 +56,5 @@ module.exports = {
|
|
|
56
56
|
get0(42); // $FlowExpectedError - extracting an arbitrary number as a 1-based number
|
|
57
57
|
|
|
58
58
|
get1(42);
|
|
59
|
-
}
|
|
59
|
+
},
|
|
60
60
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
'use strict';
|
|
13
13
|
|
|
14
|
-
const {add, get0, get1, add1, sub1, sub, neg, add0, inc} = require('../ob1');
|
|
15
|
-
|
|
16
14
|
import type {Number0, Number1} from '../ob1';
|
|
15
|
+
|
|
16
|
+
const {add, add0, add1, get0, get1, inc, neg, sub, sub1} = require('../ob1');
|
|
17
17
|
const FORTY_TWO_0 = add0(42);
|
|
18
18
|
const FORTY_TWO_1 = add1(42);
|
|
19
19
|
|
package/src/ob1.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -58,5 +58,5 @@ module.exports = {
|
|
|
58
58
|
sub,
|
|
59
59
|
neg,
|
|
60
60
|
add0,
|
|
61
|
-
inc
|
|
61
|
+
inc,
|
|
62
62
|
};
|
package/src/ob1.js.flow
CHANGED