@takeshape/util
Advanced tools
Comparing version 10.39.9 to 10.40.0
@@ -10,4 +10,3 @@ "use strict"; | ||
exports.isStripeProductObject = isStripeProductObject; | ||
var _tinyInvariant = _interopRequireDefault(require("tiny-invariant")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _assert = require("./assert"); | ||
// Mirrors StripeAddressElementChangeEvent["value"] from @stripe/stripe-js | ||
@@ -43,3 +42,3 @@ | ||
function getStripeProductObject(product) { | ||
(0, _tinyInvariant.default)(isStripeProductObject(product)); | ||
(0, _assert.assert)(isStripeProductObject(product), 'product is not a Stripe product object'); | ||
return product; | ||
@@ -46,0 +45,0 @@ } |
@@ -28,2 +28,3 @@ export * from './types'; | ||
export * from './persisted-queries'; | ||
export * from './assert'; | ||
//# sourceMappingURL=common.d.ts.map |
@@ -302,2 +302,13 @@ "use strict"; | ||
}); | ||
}); | ||
var _assert = require("./assert"); | ||
Object.keys(_assert).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _assert[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _assert[key]; | ||
} | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
export type PersistedQueryExtensions = { | ||
export type PersistedQueryExtension = { | ||
persistedQuery: { | ||
@@ -3,0 +3,0 @@ version: number; |
@@ -1,2 +0,2 @@ | ||
import invariant from 'tiny-invariant'; | ||
import { assert } from './assert'; | ||
@@ -33,3 +33,3 @@ // Mirrors StripeAddressElementChangeEvent["value"] from @stripe/stripe-js | ||
export function getStripeProductObject(product) { | ||
invariant(isStripeProductObject(product)); | ||
assert(isStripeProductObject(product), 'product is not a Stripe product object'); | ||
return product; | ||
@@ -36,0 +36,0 @@ } |
@@ -27,2 +27,3 @@ export * from './types'; | ||
export * from './path-to-string'; | ||
export * from './persisted-queries'; | ||
export * from './persisted-queries'; | ||
export * from './assert'; |
{ | ||
"name": "@takeshape/util", | ||
"version": "10.39.9", | ||
"version": "10.40.0", | ||
"description": "Shared utilities", | ||
@@ -36,3 +36,3 @@ "homepage": "https://www.takeshape.io", | ||
"url-parse": "^1.5.3", | ||
"@takeshape/routing": "10.39.9" | ||
"@takeshape/routing": "10.40.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211810
150
4810
+ Added@takeshape/routing@10.40.0(transitive)
- Removed@takeshape/routing@10.39.9(transitive)
Updated@takeshape/routing@10.40.0