Socket
Socket
Sign inDemoInstall

@takeshape/util

Package Overview
Dependencies
Maintainers
0
Versions
732
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@takeshape/util - npm Package Compare versions

Comparing version 10.39.9 to 10.40.0

dist/assert.d.ts

5

dist/billing.js

@@ -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 @@ }

1

dist/common.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc