@drawbridge/drawbridge-stripe 0.1.20 → 0.1.21
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/dist/index.js +6 -17
- package/dist/index.mjs +6 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -951,17 +951,12 @@ var require_subscription = __commonJS({
|
|
|
951
951
|
},
|
|
952
952
|
// Consume a deactivatableItems list. Each artifact is deactivated with an
|
|
953
953
|
// artifact-id idempotency key (`<type>.deactivate:<id>`) so re-running a
|
|
954
|
-
// delete is a safe no-op.
|
|
955
|
-
//
|
|
956
|
-
//
|
|
957
|
-
//
|
|
958
|
-
// remains the single Sentry owner.
|
|
954
|
+
// delete is a safe no-op. Promise.allSettled means a single Stripe failure
|
|
955
|
+
// never rejects — the caller inspects the settled results. No logging here:
|
|
956
|
+
// drawbridge-stripe stays a pure SDK wrapper, so the consumer (which owns
|
|
957
|
+
// telemetry) logs the outcome.
|
|
959
958
|
deactivate: async ({
|
|
960
|
-
items = []
|
|
961
|
-
logger = { info() {
|
|
962
|
-
}, warn() {
|
|
963
|
-
}, error() {
|
|
964
|
-
} }
|
|
959
|
+
items = []
|
|
965
960
|
}) => {
|
|
966
961
|
const deactivateOne = ({ type, id }) => {
|
|
967
962
|
const options = idem(type + ".deactivate", id);
|
|
@@ -978,13 +973,7 @@ var require_subscription = __commonJS({
|
|
|
978
973
|
}
|
|
979
974
|
;
|
|
980
975
|
};
|
|
981
|
-
return Promise.allSettled(
|
|
982
|
-
items.map((item) => Promise.resolve(deactivateOne(item)).catch((error) => {
|
|
983
|
-
logger.error(
|
|
984
|
-
"Stripe deactivate failed for " + (item == null ? void 0 : item.type) + " " + (item == null ? void 0 : item.id) + ": " + (error == null ? void 0 : error.message)
|
|
985
|
-
);
|
|
986
|
-
}))
|
|
987
|
-
);
|
|
976
|
+
return Promise.allSettled(items.map(deactivateOne));
|
|
988
977
|
}
|
|
989
978
|
};
|
|
990
979
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -957,17 +957,12 @@ var require_subscription = __commonJS({
|
|
|
957
957
|
},
|
|
958
958
|
// Consume a deactivatableItems list. Each artifact is deactivated with an
|
|
959
959
|
// artifact-id idempotency key (`<type>.deactivate:<id>`) so re-running a
|
|
960
|
-
// delete is a safe no-op.
|
|
961
|
-
//
|
|
962
|
-
//
|
|
963
|
-
//
|
|
964
|
-
// remains the single Sentry owner.
|
|
960
|
+
// delete is a safe no-op. Promise.allSettled means a single Stripe failure
|
|
961
|
+
// never rejects — the caller inspects the settled results. No logging here:
|
|
962
|
+
// drawbridge-stripe stays a pure SDK wrapper, so the consumer (which owns
|
|
963
|
+
// telemetry) logs the outcome.
|
|
965
964
|
deactivate: async ({
|
|
966
|
-
items = []
|
|
967
|
-
logger = { info() {
|
|
968
|
-
}, warn() {
|
|
969
|
-
}, error() {
|
|
970
|
-
} }
|
|
965
|
+
items = []
|
|
971
966
|
}) => {
|
|
972
967
|
const deactivateOne = ({ type, id }) => {
|
|
973
968
|
const options = idem(type + ".deactivate", id);
|
|
@@ -984,13 +979,7 @@ var require_subscription = __commonJS({
|
|
|
984
979
|
}
|
|
985
980
|
;
|
|
986
981
|
};
|
|
987
|
-
return Promise.allSettled(
|
|
988
|
-
items.map((item) => Promise.resolve(deactivateOne(item)).catch((error) => {
|
|
989
|
-
logger.error(
|
|
990
|
-
"Stripe deactivate failed for " + (item == null ? void 0 : item.type) + " " + (item == null ? void 0 : item.id) + ": " + (error == null ? void 0 : error.message)
|
|
991
|
-
);
|
|
992
|
-
}))
|
|
993
|
-
);
|
|
982
|
+
return Promise.allSettled(items.map(deactivateOne));
|
|
994
983
|
}
|
|
995
984
|
};
|
|
996
985
|
};
|
package/package.json
CHANGED